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[1] could be used to create or update related models as appropriate. -- Melvyn Sopacua -------- [1] https://docs.djangoproject.com/en/1.11/ref/signals/#django.db.models.signals.post_save -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2503988.A6k4gYsYkB%40devstation. For more options, visit https://groups.google.com/d/optout.