On Friday 16 June 2017 03:17:00 Nabil BOUDERBALA wrote:
> After extending an existing user model, I get
> RelatedObjectDoesNotExist exception with a value User has no
> dcf_profile. I seems that dcf_profile isn't created automatically for
> each user.
That's correct. That's your job and the documentation gives you a hint on how to do it:
These profile models are not special in any way - they are just Django models that happen to have a one-to-one link with a user model. As such, they aren't auto created when a user is created, but a django.db.models.signals.post_save could be used to create or update related models as appropriate.
--
Melvyn Sopacua
No comments:
Post a Comment