Problem in user creation

41 views
Skip to first unread message

sonam pankaj

unread,
Aug 4, 2020, 11:47:34 AM8/4/20
to Django users
  

      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

neeraj garg

unread,
Aug 4, 2020, 12:06:00 PM8/4/20
to django...@googlegroups.com
You could use django signals which will keep the models in sync.

On Tue, Aug 4, 2020, 9:16 PM sonam pankaj <sonamp...@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...@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.

sonam pankaj

unread,
Aug 4, 2020, 1:38:29 PM8/4/20
to django...@googlegroups.com
We have already used signals. still it escaped to make one of the user



--
Sonam
Lead Software Engineer
Solinas Integrity
IIT Madras

Amitesh Sahay

unread,
Aug 5, 2020, 12:20:52 AM8/5/20
to django...@googlegroups.com
Post your signal here to check



sonam pankaj

unread,
Aug 5, 2020, 2:34:48 AM8/5/20
to Django users








  Snapshot for the models

   
 Snapshots for signals

   












On Wednesday, August 5, 2020 at 9:50:52 AM UTC+5:30, Amitesh Sahay wrote:
Post your signal here to check



On Tuesday, 4 August, 2020, 11:07:56 pm IST, sonam pankaj <sonamp...@gmail.com> wrote:


We have already used signals. still it escaped to make one of the user

On Tue, Aug 4, 2020 at 9:35 PM neeraj garg <neer...@gmail.com> wrote:
You could use django signals which will keep the models in sync.

On Tue, Aug 4, 2020, 9:16 PM sonam pankaj <sonamp...@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...@googlegroups.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...@googlegroups.com.


--
Sonam
Lead Software Engineer
Solinas Integrity
IIT Madras

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages