shuup.tasks.admin_module.views package
Submodules
shuup.tasks.admin_module.views.edit module
- class shuup.tasks.admin_module.views.edit.QuickAddTaskTypeSelect(attrs=None, choices=(), editable_model=None, initial=None, model=None)[source]
Bases:
QuickAddRelatedObjectSelect
- Parameters:
int (initial) – primary key of the object that is initially selected
- url = '/sa/task_type/new/'
- property media
- class shuup.tasks.admin_module.views.edit.TaskTypeForm(*args, **kwargs)[source]
Bases:
MultiLanguageModelForm
- save(**kwargs)[source]
Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.
- base_fields = {'identifier': <django.forms.fields.CharField object>, 'name': <django.forms.fields.CharField object>}
- declared_fields = {'name': <django.forms.fields.CharField object>}
- property media
Return all media required to render the widgets on this form.
- class shuup.tasks.admin_module.views.edit.TaskForm(*args, **kwargs)[source]
Bases:
ModelForm
- class Meta[source]
Bases:
object
- exclude = ('shop', 'created_on', 'modified_on', 'status', 'completed_on', 'completed_by', 'creator')
- widgets = {'type': <shuup.tasks.admin_module.views.edit.QuickAddTaskTypeSelect object>}
- save(**kwargs)[source]
Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.
- base_fields = {'assigned_to': <django.forms.models.ModelChoiceField object>, 'name': <django.forms.fields.CharField object>, 'priority': <django.forms.fields.IntegerField object>, 'type': <django.forms.models.ModelChoiceField object>}
- declared_fields = {}
- property media
Return all media required to render the widgets on this form.
- class shuup.tasks.admin_module.views.edit.TaskCommentForm(*args, **kwargs)[source]
Bases:
ModelForm
- class Meta[source]
Bases:
object
- model
alias of
TaskComment
- exclude = ('task', 'created_on', 'modified_on', 'author')
- save(**kwargs)[source]
Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.
- base_fields = {'body': <django.forms.fields.CharField object>, 'visibility': <enumfields.forms.EnumChoiceField object>}
- declared_fields = {}
- property media
Return all media required to render the widgets on this form.
- class shuup.tasks.admin_module.views.edit.TaskTypeEditView(**kwargs)[source]
Bases:
CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- form_class
alias of
TaskTypeForm
- template_name = 'shuup/admin/tasks/task_type_edit.jinja'
- context_object_name = 'task_type'
- class shuup.tasks.admin_module.views.edit.TaskEditView(**kwargs)[source]
Bases:
BaseTaskViewMixin
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/admin/tasks/task_edit.jinja'
- context_object_name = 'task'
- fields = ()
- class shuup.tasks.admin_module.views.edit.TaskDeleteView(**kwargs)[source]
Bases:
BaseTaskViewMixin
,DeleteView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- success_url = '/sa/tasks/'
- class shuup.tasks.admin_module.views.edit.TaskSetStatusView(**kwargs)[source]
Bases:
BaseTaskViewMixin
,BaseDetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
shuup.tasks.admin_module.views.list module
- class shuup.tasks.admin_module.views.list.TaskListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name, <Column: Creator> creator, <Column: Status> status, <Column: Priority> priority, <Column: Comments> comments]
- get_queryset()[source]
Return a queryset of Task objects filtered for the current shop.
This method retrieves the current shop from the request and returns all Task instances associated with that shop using the custom ‘for_shop’ manager method.
- Returns:
A queryset of Task objects for the current shop.
- Return type:
QuerySet
- class shuup.tasks.admin_module.views.list.TaskTypeListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name]
Module contents
- class shuup.tasks.admin_module.views.TaskEditView(**kwargs)[source]
Bases:
BaseTaskViewMixin
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- context_object_name = 'task'
- fields = ()
- template_name = 'shuup/admin/tasks/task_edit.jinja'
- class shuup.tasks.admin_module.views.TaskListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name, <Column: Creator> creator, <Column: Status> status, <Column: Priority> priority, <Column: Comments> comments]
- get_queryset()[source]
Return a queryset of Task objects filtered for the current shop.
This method retrieves the current shop from the request and returns all Task instances associated with that shop using the custom ‘for_shop’ manager method.
- Returns:
A queryset of Task objects for the current shop.
- Return type:
QuerySet
- class shuup.tasks.admin_module.views.TaskDeleteView(**kwargs)[source]
Bases:
BaseTaskViewMixin
,DeleteView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- success_url = '/sa/tasks/'
- class shuup.tasks.admin_module.views.TaskSetStatusView(**kwargs)[source]
Bases:
BaseTaskViewMixin
,BaseDetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- class shuup.tasks.admin_module.views.TaskTypeListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name]
- class shuup.tasks.admin_module.views.TaskTypeEditView(**kwargs)[source]
Bases:
CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- context_object_name = 'task_type'
- form_class
alias of
TaskTypeForm
- get_queryset()[source]
Return the
QuerySet
that will be used to look up the object.This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.
- template_name = 'shuup/admin/tasks/task_type_edit.jinja'