Unique constrains failed

8 views
Skip to first unread message

Soumen Khatua

unread,
Mar 6, 2020, 5:35:52 AM3/6/20
to django...@googlegroups.com
Hi Folks,

I'm extending user model as OneToOneField in my own model. So it's mean one user can contain only one field. But if I'll try to do another request I getting unique contrainr failed so as of now it's absolutely fine. But my query is I want to handle this error and send a message to that user something like your data is already existed in our database. But I don't know how do that,please help my guys?!!


Thank you in advance

Regards, 
Soumen
Reply all
Reply to author
Forward
0 new messages