Merge pull request 'FIX 6d5c77ee71fd91669840a41b13ae30378279994d' (#34) from heinzel into master
All checks were successful
buildbot/tox Build done.

Reviewed-on: #34
This commit was merged in pull request #34.
This commit is contained in:
2020-12-18 16:50:55 +01:00

View File

@@ -690,7 +690,7 @@ class EventCreateView(EventPermissionMixin, generic.FormView):
event.editor = self.request.user event.editor = self.request.user
# Check for double submission (seems to happens accidentally if smartphone user reload the submit page) # Check for double submission (seems to happens accidentally if smartphone user reload the submit page)
possible_doublets = models.Event.objects.filter(owner=event.editor, possible_doublets = models.Event.objects.filter(owner=event.owner,
title=event.title, title=event.title,
first_day=event.first_day) first_day=event.first_day)
if possible_doublets.exists(): if possible_doublets.exists():