2👍
From this question: https://stackoverflow.com/a/29810311/2800876
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
Source:stackexchange.com