python - Set `get_absolute_url` in Django auth -
i'm using django's built-in auth model.
how can set get_absolute_url
without substituting entire auth model custom auth model?
you need substitute user model. can inherit abstractuser
, defines fields already, need override method want:
class myuser(abstractuser): def get_absolute_url(self): return ...
and auth_user_model = 'my_app.myuser'
in settings.py, , you're go.