mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Resolve flake8 warnings
This commit is contained in:
@@ -34,8 +34,8 @@ class EventCreateForm(VersionedModelForm):
|
||||
if Event.objects.filter(slug=slug, organizer=self.organizer).exists():
|
||||
raise forms.ValidationError(
|
||||
self.error_messages['duplicate_slug'],
|
||||
code='duplicate_slug',
|
||||
)
|
||||
code='duplicate_slug'
|
||||
)
|
||||
return slug
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user