projects
/
pgarchives.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67d4944
)
Don't allow duplicate requests for the same email to be resent
author
Magnus Hagander
<
[email protected]
>
Tue, 18 Jun 2019 19:52:48 +0000
(21:52 +0200)
committer
Magnus Hagander
<
[email protected]
>
Tue, 18 Jun 2019 19:52:48 +0000
(21:52 +0200)
To the same user, that is.
django/archives/mailarchives/views.py
patch
|
blob
|
blame
|
history
diff --git
a/django/archives/mailarchives/views.py
b/django/archives/mailarchives/views.py
index 203bd68f82d67998584175447eae10565a20ac8f..bd7b8915f0705926470c09fd396b6a08850d75a8 100644
(file)
--- a/
django/archives/mailarchives/views.py
+++ b/
django/archives/mailarchives/views.py
@@
-646,7
+646,7
@@
def resend(request, messageid):
if request.method == 'POST':
if request.POST.get('resend', None) == '1':
- ResendMessage
(message=m, sendto=request.user).save(
)
+ ResendMessage
.objects.get_or_create(message=m, sendto=request.user
)
connection.cursor().execute("NOTIFY archives_resend")
return HttpResponseRedirect('/message-id/resend/{0}/complete'.format(m.messageid))