diff --git a/mail/views.py b/mail/views.py index 5b344af..290ca0f 100644 --- a/mail/views.py +++ b/mail/views.py @@ -62,7 +62,7 @@ def compose(request): sender=request.user, subject=subject, body=body, - read=user == request.user + read=False ) email.save() for recipient in recipients: @@ -176,4 +176,4 @@ def register(request): login(request, user) return HttpResponseRedirect(reverse("index")) else: - return render(request, "mail/register.html") \ No newline at end of file + return render(request, "mail/register.html")