Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

use_a_custom_user_model.rst 1012B

123456789101112131415161718192021222324
  1. ==============================
  2. How to use a custom user model
  3. ==============================
  4. If you are using Django 1.5 or later, then you can specify a custom user model
  5. in your settings. Oscar will dynamically adjust the profile summary view and
  6. profile editing form to use the fields from your custom model.
  7. Before Django 1.5, the recommended technique for adding fields to users was to
  8. use a one-to-one "profile" model specified in the ``AUTH_PROFILE_MODULE``.
  9. Oscar continues to support this setting and will add relevant fields to the
  10. profile form. Hence profiles can be used in combination with custom user
  11. models.
  12. Restrictions
  13. ------------
  14. Oscar does have some requirements on what fields a user model has. For
  15. instance, the auth backend requires a user to have an 'email' and 'password'
  16. field.
  17. Oscar 0.6 ships with its own abstract user model that supports the minimum
  18. fields and methods required for Oscar to work correctly. New Oscar projects are
  19. encouraged to subclass this User model.