diff --git a/core/admin/users.py b/core/admin/users.py index aeb2ffbd..29b3c174 100644 --- a/core/admin/users.py +++ b/core/admin/users.py @@ -24,7 +24,7 @@ class UserAdmin(UserAdmin): fieldsets = ( ( None, - {"fields": ("username", "password")}, + {"fields": ("username", "password", "asked_to_verify_email")}, ), ( _("Personal info"), diff --git a/core/tasks.py b/core/tasks.py index cc35602d..0edd882d 100644 --- a/core/tasks.py +++ b/core/tasks.py @@ -104,7 +104,6 @@ def ask_to_verify_email(): body += _("Best wishes, Rami.") m = EmailMessage(subject, body, settings.DEFAULT_FROM_EMAIL, [obj.email]) m.send(fail_silently=False) - users = users.union(obj.user) # in for loop obj.user.asked_to_verify_email = True obj.user.save()