Word source CRUD views¶
CRUD word sources views module.
- class SourceCreateView(**kwargs)¶
Bases:
CheckLoginPermissionMixin
,CreateView
Create source view.
- form_class¶
alias of
SourceForm
- success_message = 'Источник слов добавлен'¶
Success action message text (str).
- form_valid(form: Type[Form]) HttpResponse ¶
Add the current user to the form.
- class SourceUpdateView(**kwargs)¶
Bases:
CheckUserOwnershipMixin
,UpdateView
Update source view.
- model¶
alias of
WordSource
- form_class¶
alias of
SourceForm
- success_message = 'Источник слов изменен'¶
Success action message text (str).
- class SourceDeleteView(*args, **kwargs)¶
Bases:
PermissionProtectDeleteView
Delete source view.
- model¶
alias of
WordSource
- success_message = 'Источник слов удален'¶
Success action message text (str).
- class SourceListView(**kwargs)¶
Bases:
CheckLoginPermissionMixin
,ListView
List source view.
- model¶
alias of
WordSource
- get_queryset() QuerySet ¶
Return the QuerySet to look up the object.
- class SourceDetailView(**kwargs)¶
Bases:
CheckUserOwnershipMixin
,DetailView
Detail source view.
- model¶
alias of
WordSource