shuup.front.apps.personal_order_history package

Submodules

shuup.front.apps.personal_order_history.dashboard_items module

class shuup.front.apps.personal_order_history.dashboard_items.OrderHistoryItem(request)[source]

Bases: DashboardItem

title = 'Order history'

Sequence number of dashboard item

template_name = 'shuup/personal_order_history/dashboard.jinja'

Title shown in dashboard menu and in dashboard

icon = 'fa fa-sticky-note-o'

Text for dashboard

If your dashboard item shows single object, Edit is just fine but if you are listing objects, Show All might be better.

view_text = 'Show all'
get_context()[source]

Get context for template

This is usually overridden in subclasses.

Returns:

Dict of context items

Return type:

dict

shuup.front.apps.personal_order_history.urls module

shuup.front.apps.personal_order_history.views module

class shuup.front.apps.personal_order_history.views.OrderViewMixin[source]

Bases: object

model

alias of Order

get_queryset()[source]
class shuup.front.apps.personal_order_history.views.OrderListView(**kwargs)[source]

Bases: DashboardViewMixin, OrderViewMixin, ListView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/personal_order_history/order_list.jinja'
context_object_name = 'orders'
class shuup.front.apps.personal_order_history.views.OrderDetailView(**kwargs)[source]

Bases: DashboardViewMixin, OrderViewMixin, DetailView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/personal_order_history/order_detail.jinja'
context_object_name = 'order'
get_context_data(**kwargs)[source]

Insert the single object into the context dict.

class shuup.front.apps.personal_order_history.views.ReorderView(**kwargs)[source]

Bases: View

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

get(request, *args, **kwargs)[source]

Module contents

class shuup.front.apps.personal_order_history.AppConfig(*args, **kwargs)[source]

Bases: AppConfig

name = 'shuup.front.apps.personal_order_history'
verbose_name = 'Shuup Frontend - Personal Order History'
label = 'shuup_front_personal_order_history'
provides = {'customer_dashboard_items': ['shuup.front.apps.personal_order_history.dashboard_items:OrderHistoryItem'], 'front_urls': ['shuup.front.apps.personal_order_history.urls:urlpatterns']}

See /provides for details about the provides variable.