Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

dashboard.rst 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. =========
  2. Dashboard
  3. =========
  4. The dashboard is the backend interface for managing the store. That includes the
  5. product catalogue, orders and stock, offers etc. It is intended as a
  6. complete replacement of the Django admin interface.
  7. The app itself only contains a view that serves as a kind of homepage, and
  8. some logic for managing the navigation (in ``nav.py``). There's several sub-apps
  9. that are responsible for managing the different parts of the Oscar store.
  10. Permission-based dashboard
  11. --------------------------
  12. Staff users (users with ``is_staff==True``) get access to all views in the
  13. dashboard. To better support Oscar's use for marketplace scenarios, the
  14. permission-based dashboard has been introduced. If a non-staff user has
  15. the ``partner.dashboard_access`` permission set, she is given access to a subset
  16. of views, and her access to products and orders is limited.
  17. :class:`~oscar.apps.partner.abstract_models.AbstractPartner` instances
  18. have a :attr:`~oscar.apps.partner.abstract_models.AbstractPartner.users` field.
  19. If a non-staff user is in that list, she is given
  20. access to associated models. By default, this access is rather permissive:
  21. a user gets granted access if one of a product's stock records has a matching
  22. partner, or if one of an order's lines is associated with a matching partner.
  23. For many marketplace scenarios, it will make sense to ensure at checkout that
  24. a basket only contains lines from one partner.
  25. Abstract models
  26. ---------------
  27. None.
  28. Views
  29. -----
  30. .. automodule:: oscar.apps.dashboard.views
  31. :members: