[Answer]-Removing an email from a Django User

1👍

In Django, a User is defined as follows:

email = models.EmailField(_('email address'), blank=True)

Consequently, a user’s email can be blank (i.e. "") but not null (i.e. None). You clear a user’s email with the following:

user.email = ""
user.save()
👤Zags

Leave a comment