You could use django signals which will keep the models in sync.
On Tue, Aug 4, 2020, 9:16 PM sonam pankaj <sonampankaj2@gmail.com> wrote:
--Hi,there is a problem when doing profile model using contrib.auth , sometimes profile is created without user so they went out of sync. How to make sure that user_id and Profile_id remain in sync. thanks
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c08a9b60-25a3-40d4-9fb6-e1d4a40e4038o%40googlegroups.com.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGR%2BspeEyGRKjcuGphNGA%2B57zSh5WxOpttHsAbCZv4-tyTRnWQ%40mail.gmail.com.
No comments:
Post a Comment