Skip to content

Commit

Permalink
issue email and user admin
Browse files Browse the repository at this point in the history
  • Loading branch information
ramibch committed Jan 3, 2024
1 parent 0b29bb8 commit e8465a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion core/admin/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class UserAdmin(UserAdmin):
fieldsets = (
(
None,
{"fields": ("username", "password")},
{"fields": ("username", "password", "asked_to_verify_email")},
),
(
_("Personal info"),
Expand Down
1 change: 0 additions & 1 deletion core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit e8465a7

Please sign in to comment.