Hi Sagar, On 27/04/2020 14.25, sagar ninave wrote:
i am getting this error
It's hard to guess since you don't show where your User class comes from, but it doesn't seem like its inheriting from the Django model class. The error message is quite clear. Look at your User model. Btw. just a hint: please try to "return early". It is quite difficult to see which else branches are connected to which if statements in the code following the one throwing the exception. Kind regards, Kasper Laudrup -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/96eba188-98e9-4284-cbab-a3aa3c909c05%40stacktrace.dk.

