Best way to add convenience methods to a Django Auth User model?

前端 未结 5 1674
春和景丽
春和景丽 2020-12-13 19:34

I want to add a convenience/model method to the django.contrib.auth.models.User model. What is the best practice for doing this since, last time I checked, ext

5条回答
  •  春和景丽
    2020-12-13 20:41

    2013 update:

    in 1.5 you can sustitute a custom User model and add whatever you want https://docs.djangoproject.com/en/dev/topics/auth/customizing/#auth-custom-user

提交回复
热议问题