All good. It works now.
It has to be EmailAddress.objects.create(user=instance, email=instance.email
)
Many thanks for your input.
On Saturday, 12 August 2017 16:58:10 UTC+1, Derek wrote:
>
> I am not exactly sure about your use case description, but it seems as if
> your EmailAddress table is
I have got some updates.
Basically what I want is if admin creates a user then no verification is
needed. He/she can straight go to the login page and login with the email
and password which was emailed to the user.(I need to do this email part
later though)
Now another issue has raised with
Hi Derek,
Many thanks for your suggestion.
I made some progress since I posted this topic. The new row has been
created in EmailAddress table but the email is blank. I can't find a solid
reason. In the admin user creation form there is an email field and the
table auth_user has got the email.
I am not exactly sure about your use case description, but it seems as if
your EmailAddress table is incomplete - suggest:
class EmailAddress(models.Model):
user = models.OneToOneField(User, unique=True, related_name ='profile')
verified = models.BooleanField(verbose_name=_('verified'), d
I am a fresher in django. I am using django 1.10 with allauth app which
takes care of frontend registration, sending user confirmation
email,validation, login with email etc. So it all works in the frontend. In
the backend I managed to change the user creation form by adding an extra
field emai
5 matches
Mail list logo