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

前端 未结 5 1673
春和景丽
春和景丽 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:31

    Yes. No need to mess with the foundations when your user model has a .get_profile() function attached to it.

提交回复
热议问题