Views
CanCreateMixin
¶
Bases: View
Protect any child view that would create an object.
Raises:
Type | Description |
---|---|
PermissionDenied
|
If the user has not the necessary permission to create the object of the view. |
CanEditMixin
¶
Bases: GenericContentPermissionMixinBuilder
Ensure the user has permission to edit this view's object.
Raises:
Type | Description |
---|---|
PermissionDenied
|
if the user cannot edit this view's object. |
CanEditPropMixin
¶
Bases: GenericContentPermissionMixinBuilder
Ensure the user has owner permissions on the child view object.
In other word, you can make a view with this view as parent,
and it will be retricted to the users that are in the
object's owner_group or that pass the obj.can_be_viewed_by
test.
Raises:
Type | Description |
---|---|
PermissionDenied
|
If the user cannot see the object |
CanViewMixin
¶
Bases: GenericContentPermissionMixinBuilder
Ensure the user has permission to view this view's object.
Raises:
Type | Description |
---|---|
PermissionDenied
|
if the user cannot edit this view's object. |
ProductType
¶
Bases: Model
A product type.
Useful only for categorizing.
is_owned_by(user)
¶
Method to see if that object can be edited by the given user.
CounterAdminTabsMixin
¶
Bases: TabedViewMixin
CounterTabsMixin
¶
Bases: TabedViewMixin
ShoppingList
¶
Bases: Model
The ShoppingList class, used to make an history of the shopping lists.
ShoppingListItem
¶
Bases: Model
An Item on a shopping list.
Stock
¶
Bases: Model
The Stock class, this one is used to know how many products are left for a specific counter.
StockItem
¶
Bases: Model
The StockItem class, element of the stock.
StockItemList
¶
Bases: CounterAdminTabsMixin
, CanCreateMixin
, ListView
The stockitems list view for the counter owner.
StockListView
¶
StockEditForm(*args, **kwargs)
¶
StockEditView
¶
StockItemEditView
¶
StockCreateView
¶
StockItemCreateView
¶
StockShoppingListView
¶
Bases: CounterAdminTabsMixin
, CanViewMixin
, ListView
A list view for the people to know the item to buy.
StockItemQuantityForm
¶
Bases: BaseForm
StockItemQuantityBaseFormView
¶
Bases: CounterAdminTabsMixin
, CanEditMixin
, DetailView
, BaseFormView
docstring for StockItemOutList.
StockShoppingListItemListView
¶
StockShoppingListDeleteView
¶
Bases: CounterAdminTabsMixin
, CanEditMixin
, DeleteView
Delete a ShoppingList (for the resonsible account).
StockShopppingListSetDone
¶
StockShopppingListSetTodo
¶
StockUpdateAfterShopppingForm
¶
Bases: BaseForm
StockUpdateAfterShopppingBaseFormView
¶
Bases: CounterAdminTabsMixin
, CanEditMixin
, DetailView
, BaseFormView
docstring for StockUpdateAfterShopppingBaseFormView.
post(request, *args, **kwargs)
¶
Handle the many possibilities of the post request.
Source code in stock/views.py
StockTakeItemsForm
¶
Bases: BaseForm
docstring for StockTakeItemsFormView.
StockTakeItemsBaseFormView
¶
Bases: CounterTabsMixin
, CanEditMixin
, DetailView
, BaseFormView
docstring for StockTakeItemsBaseFormView.
post(request, *args, **kwargs)
¶
Handle the many possibilities of the post request.