shuup.discounts.admin.views package
Module contents
- class shuup.discounts.admin.views.ArchivedDiscountListView[source]
Bases:
DiscountListView
- get_queryset()[source]
Return the list of items for this view.
The return value must be an iterable and may be an instance of
QuerySet
in which caseQuerySet
specific behavior will be enabled.
- mass_actions = ['shuup.discounts.admin.mass_actions:UnarchiveMassAction', 'shuup.discounts.admin.mass_actions:DeleteMassAction']
- class shuup.discounts.admin.views.DiscountDeleteView(**kwargs)[source]
Bases:
DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- class shuup.discounts.admin.views.DiscountEditView(**kwargs)[source]
Bases:
CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- context_object_name = 'discounts'
- form_class
alias of
DiscountForm
- 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/discounts/discount_edit.jinja'
- class shuup.discounts.admin.views.DiscountListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Discount Name> name, <Column: Product> product__translations__name, <Column: Category> category, <Column: Contact Group> contact_group, <Column: Contact> contact, <Column: Effect> discount_effect, <Column: End Date and Time> end_datetime]
- get_queryset()[source]
Return the list of items for this view.
The return value must be an iterable and may be an instance of
QuerySet
in which caseQuerySet
specific behavior will be enabled.
- mass_actions = ['shuup.discounts.admin.mass_actions:ArchiveMassAction']
- url_identifier = 'discounts'
- class shuup.discounts.admin.views.HappyHourEditView(**kwargs)[source]
Bases:
CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- context_object_name = 'discounts'
- form_class
alias of
HappyHourForm
- 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/discounts/edit.jinja'
- class shuup.discounts.admin.views.HappyHourDeleteView(**kwargs)[source]
Bases:
DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- class shuup.discounts.admin.views.HappyHourListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Happy Hour Name> name]
- get_queryset()[source]
Return the list of items for this view.
The return value must be an iterable and may be an instance of
QuerySet
in which caseQuerySet
specific behavior will be enabled.
- url_identifier = 'discounts_happy_hour'