We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
cannot create organiser
## Expected Behavior

As an admin, I'd like to create new organizers.

## Current Behavior

![image](https://user-images.githubusercontent.com/2158203/46036518-f4bfae00-c105-11e8-9ffd-c20d61007e72.png)

## Steps to Reproduce

1. go to `/orga/organiser/new`
2. enter data into all non-disabled fields
3. press save
4. receive "This field is required." for the short form, which is disabled

## Your Environment

<!--- Include as many relevant details about the environment you experienced the bug in -->
* Version used: v0.8.0
* Environment name and version (e.g. Chrome 39, python 3.5): N/A
* Operating System and version (desktop or mobile): N/A
* Link to your instance, if in production: conference.c3w.at
cannot create organiser
## Expected Behavior

As an admin, I'd like to create new organizers.

## Current Behavior

![image](https://user-images.githubusercontent.com/2158203/46036518-f4bfae00-c105-11e8-9ffd-c20d61007e72.png)

## Steps to Reproduce

1. go to `/orga/organiser/new`
2. enter data into all non-disabled fields
3. press save
4. receive "This field is required." for the short form, which is disabled

## Your Environment

<!--- Include as many relevant details about the environment you experienced the bug in -->
* Version used: v0.8.0
* Environment name and version (e.g. Chrome 39, python 3.5): N/A
* Operating System and version (desktop or mobile): N/A
* Link to your instance, if in production: conference.c3w.at

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/pretalx/event/forms.py`
Content:
```
1 from django import forms
2 from django.conf import settings
3 from django.db.models import Q
4 from django.utils.translation import ugettext_lazy as _
5 from i18nfield.forms import I18nModelForm
6 
7 from pretalx.common.mixins.forms import ReadOnlyFlag
8 from pretalx.event.models import Event, Organiser, Team, TeamInvite
9 from pretalx.orga.forms.widgets import HeaderSelect, MultipleLanguagesWidget
10 
11 
12 class TeamForm(ReadOnlyFlag, I18nModelForm):
13     def __init__(self, *args, organiser=None, instance=None, **kwargs):
14         super().__init__(*args, instance=instance, **kwargs)
15         if instance and getattr(instance, 'pk', None):
16             self.fields.pop('organiser')
17             self.fields['limit_events'].queryset = instance.organiser.events.all()
18         else:
19             self.fields['organiser'].queryset = organiser
20 
21     class Meta:
22         model = Team
23         fields = [
24             'name',
25             'organiser',
26             'all_events',
27             'limit_events',
28             'can_create_events',
29             'can_change_teams',
30             'can_change_organiser_settings',
31             'can_change_event_settings',
32             'can_change_submissions',
33             'is_reviewer',
34             'review_override_votes',
35         ]
36 
37 
38 class TeamInviteForm(ReadOnlyFlag, forms.ModelForm):
39     class Meta:
40         model = TeamInvite
41         fields = ('email',)
42 
43 
44 class OrganiserForm(ReadOnlyFlag, I18nModelForm):
45     def __init__(self, *args, **kwargs):
46         super().__init__(*args, **kwargs)
47         self.fields['slug'].disabled = True
48 
49     class Meta:
50         model = Organiser
51         fields = ('name', 'slug')
52 
53 
54 class EventWizardInitialForm(forms.Form):
55     locales = forms.MultipleChoiceField(
56         choices=settings.LANGUAGES,
57         label=_('Use languages'),
58         help_text=_('Choose all languages that your event should be available in.'),
59         widget=MultipleLanguagesWidget,
60     )
61 
62     def __init__(self, *args, user=None, **kwargs):
63         super().__init__(*args, **kwargs)
64         self.fields['organiser'] = forms.ModelChoiceField(
65             label=_('Organiser'),
66             queryset=Organiser.objects.filter(
67                 id__in=user.teams.filter(can_create_events=True).values_list(
68                     'organiser', flat=True
69                 )
70             )
71             if not user.is_administrator
72             else Organiser.objects.all(),
73             widget=forms.RadioSelect,
74             empty_label=None,
75             required=True,
76             help_text=_(
77                 'The organiser running the event can copy settings from previous events and share team permissions across all or multiple events.'
78             ),
79         )
80         if len(self.fields['organiser'].choices) == 1:
81             self.fields['organiser'].initial = self.fields['organiser'].queryset.first()
82 
83 
84 class EventWizardBasicsForm(I18nModelForm):
85     def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):
86         self.locales = locales
87         super().__init__(*args, **kwargs, locales=locales)
88         self.fields['locale'].choices = [
89             (a, b) for a, b in settings.LANGUAGES if a in locales
90         ]
91         self.fields['slug'].help_text = _(
92             'This is the address your event will be available at. Should be short, only contain lowercase letters and numbers, and must be unique. We recommend some kind of abbreviation with less than 10 characters that can be easily remembered.'
93         )
94 
95     def clean_slug(self):
96         slug = self.cleaned_data['slug']
97         qs = Event.objects.all()
98         if qs.filter(slug__iexact=slug).exists():
99             raise forms.ValidationError(
100                 _(
101                     'This short name is already taken, please choose another one (or ask the owner of that event to add you to their team).'
102                 )
103             )
104 
105         return slug.lower()
106 
107     class Meta:
108         model = Event
109         fields = ('name', 'slug', 'timezone', 'email', 'locale')
110 
111 
112 class EventWizardTimelineForm(forms.ModelForm):
113     deadline = forms.DateTimeField(
114         required=False, help_text=_('The default deadline for your Call for Papers.')
115     )
116 
117     def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):
118         super().__init__(*args, **kwargs)
119         self.fields['date_from'].widget.attrs['class'] = 'datepickerfield'
120         self.fields['date_to'].widget.attrs['class'] = 'datepickerfield'
121         self.fields['date_to'].widget.attrs['data-date-after'] = '#id_date_from'
122         self.fields['deadline'].widget.attrs['class'] = 'datetimepickerfield'
123 
124     class Meta:
125         model = Event
126         fields = ('date_from', 'date_to')
127 
128 
129 class EventWizardDisplayForm(forms.Form):
130     show_on_dashboard = forms.BooleanField(
131         initial=True,
132         required=False,
133         label=_('Show on dashboard'),
134         help_text=_('Show this event on this website\'s dashboard, once it is public?'),
135     )
136     primary_color = forms.CharField(required=False)
137     logo = forms.ImageField(
138         required=False,
139         help_text=_(
140             'If you provide a logo image, we will by default not show your events name and date in the page header. We will show your logo with a maximal height of 120 pixels.'
141         ),
142     )
143     display_header_pattern = forms.ChoiceField(
144         label=_('Frontpage header pattern'),
145         help_text=_(
146             'Choose how the frontpage header banner will be styled. Pattern source: <a href="http://www.heropatterns.com/">heropatterns.com</a>, CC BY 4.0.'
147         ),
148         choices=(
149             ('', _('Plain')),
150             ('pcb', _('Circuits')),
151             ('bubbles', _('Circles')),
152             ('signal', _('Signal')),
153             ('topo', _('Topography')),
154             ('graph', _('Graph Paper')),
155         ),
156         required=False,
157         widget=HeaderSelect,
158     )
159 
160     def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):
161         super().__init__(*args, **kwargs)
162 
163 
164 class EventWizardCopyForm(forms.Form):
165     @staticmethod
166     def copy_from_queryset(user):
167         return Event.objects.filter(
168             Q(
169                 organiser_id__in=user.teams.filter(
170                     all_events=True, can_change_event_settings=True
171                 ).values_list('organiser', flat=True)
172             )
173             | Q(
174                 id__in=user.teams.filter(can_change_event_settings=True).values_list(
175                     'limit_events__id', flat=True
176                 )
177             )
178         )
179 
180     def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):
181         super().__init__(*args, **kwargs)
182         self.fields['copy_from_event'] = forms.ModelChoiceField(
183             label=_('Copy configuration from'),
184             queryset=EventWizardCopyForm.copy_from_queryset(user),
185             widget=forms.RadioSelect,
186             empty_label=_('Do not copy'),
187             required=False,
188         )
189
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/src/pretalx/event/forms.py b/src/pretalx/event/forms.py
--- a/src/pretalx/event/forms.py
+++ b/src/pretalx/event/forms.py
@@ -44,7 +44,9 @@
 class OrganiserForm(ReadOnlyFlag, I18nModelForm):
     def __init__(self, *args, **kwargs):
         super().__init__(*args, **kwargs)
-        self.fields['slug'].disabled = True
+
+        if kwargs.get('instance'):
+            self.fields['slug'].disabled = True
 
     class Meta:
         model = Organiser

{"golden_diff": "diff --git a/src/pretalx/event/forms.py b/src/pretalx/event/forms.py\n--- a/src/pretalx/event/forms.py\n+++ b/src/pretalx/event/forms.py\n@@ -44,7 +44,9 @@\n class OrganiserForm(ReadOnlyFlag, I18nModelForm):\n     def __init__(self, *args, **kwargs):\n         super().__init__(*args, **kwargs)\n-        self.fields['slug'].disabled = True\n+\n+        if kwargs.get('instance'):\n+            self.fields['slug'].disabled = True\n \n     class Meta:\n         model = Organiser\n", "issue": "cannot create organiser\n## Expected Behavior\r\n\r\nAs an admin, I'd like to create new organizers.\r\n\r\n## Current Behavior\r\n\r\n![image](https://user-images.githubusercontent.com/2158203/46036518-f4bfae00-c105-11e8-9ffd-c20d61007e72.png)\r\n\r\n## Steps to Reproduce\r\n\r\n1. go to `/orga/organiser/new`\r\n2. enter data into all non-disabled fields\r\n3. press save\r\n4. receive \"This field is required.\" for the short form, which is disabled\r\n\r\n## Your Environment\r\n\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Version used: v0.8.0\r\n* Environment name and version (e.g. Chrome 39, python 3.5): N/A\r\n* Operating System and version (desktop or mobile): N/A\r\n* Link to your instance, if in production: conference.c3w.at\ncannot create organiser\n## Expected Behavior\r\n\r\nAs an admin, I'd like to create new organizers.\r\n\r\n## Current Behavior\r\n\r\n![image](https://user-images.githubusercontent.com/2158203/46036518-f4bfae00-c105-11e8-9ffd-c20d61007e72.png)\r\n\r\n## Steps to Reproduce\r\n\r\n1. go to `/orga/organiser/new`\r\n2. enter data into all non-disabled fields\r\n3. press save\r\n4. receive \"This field is required.\" for the short form, which is disabled\r\n\r\n## Your Environment\r\n\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Version used: v0.8.0\r\n* Environment name and version (e.g. Chrome 39, python 3.5): N/A\r\n* Operating System and version (desktop or mobile): N/A\r\n* Link to your instance, if in production: conference.c3w.at\n", "before_files": [{"content": "from django import forms\nfrom django.conf import settings\nfrom django.db.models import Q\nfrom django.utils.translation import ugettext_lazy as _\nfrom i18nfield.forms import I18nModelForm\n\nfrom pretalx.common.mixins.forms import ReadOnlyFlag\nfrom pretalx.event.models import Event, Organiser, Team, TeamInvite\nfrom pretalx.orga.forms.widgets import HeaderSelect, MultipleLanguagesWidget\n\n\nclass TeamForm(ReadOnlyFlag, I18nModelForm):\n    def __init__(self, *args, organiser=None, instance=None, **kwargs):\n        super().__init__(*args, instance=instance, **kwargs)\n        if instance and getattr(instance, 'pk', None):\n            self.fields.pop('organiser')\n            self.fields['limit_events'].queryset = instance.organiser.events.all()\n        else:\n            self.fields['organiser'].queryset = organiser\n\n    class Meta:\n        model = Team\n        fields = [\n            'name',\n            'organiser',\n            'all_events',\n            'limit_events',\n            'can_create_events',\n            'can_change_teams',\n            'can_change_organiser_settings',\n            'can_change_event_settings',\n            'can_change_submissions',\n            'is_reviewer',\n            'review_override_votes',\n        ]\n\n\nclass TeamInviteForm(ReadOnlyFlag, forms.ModelForm):\n    class Meta:\n        model = TeamInvite\n        fields = ('email',)\n\n\nclass OrganiserForm(ReadOnlyFlag, I18nModelForm):\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.fields['slug'].disabled = True\n\n    class Meta:\n        model = Organiser\n        fields = ('name', 'slug')\n\n\nclass EventWizardInitialForm(forms.Form):\n    locales = forms.MultipleChoiceField(\n        choices=settings.LANGUAGES,\n        label=_('Use languages'),\n        help_text=_('Choose all languages that your event should be available in.'),\n        widget=MultipleLanguagesWidget,\n    )\n\n    def __init__(self, *args, user=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.fields['organiser'] = forms.ModelChoiceField(\n            label=_('Organiser'),\n            queryset=Organiser.objects.filter(\n                id__in=user.teams.filter(can_create_events=True).values_list(\n                    'organiser', flat=True\n                )\n            )\n            if not user.is_administrator\n            else Organiser.objects.all(),\n            widget=forms.RadioSelect,\n            empty_label=None,\n            required=True,\n            help_text=_(\n                'The organiser running the event can copy settings from previous events and share team permissions across all or multiple events.'\n            ),\n        )\n        if len(self.fields['organiser'].choices) == 1:\n            self.fields['organiser'].initial = self.fields['organiser'].queryset.first()\n\n\nclass EventWizardBasicsForm(I18nModelForm):\n    def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):\n        self.locales = locales\n        super().__init__(*args, **kwargs, locales=locales)\n        self.fields['locale'].choices = [\n            (a, b) for a, b in settings.LANGUAGES if a in locales\n        ]\n        self.fields['slug'].help_text = _(\n            'This is the address your event will be available at. Should be short, only contain lowercase letters and numbers, and must be unique. We recommend some kind of abbreviation with less than 10 characters that can be easily remembered.'\n        )\n\n    def clean_slug(self):\n        slug = self.cleaned_data['slug']\n        qs = Event.objects.all()\n        if qs.filter(slug__iexact=slug).exists():\n            raise forms.ValidationError(\n                _(\n                    'This short name is already taken, please choose another one (or ask the owner of that event to add you to their team).'\n                )\n            )\n\n        return slug.lower()\n\n    class Meta:\n        model = Event\n        fields = ('name', 'slug', 'timezone', 'email', 'locale')\n\n\nclass EventWizardTimelineForm(forms.ModelForm):\n    deadline = forms.DateTimeField(\n        required=False, help_text=_('The default deadline for your Call for Papers.')\n    )\n\n    def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.fields['date_from'].widget.attrs['class'] = 'datepickerfield'\n        self.fields['date_to'].widget.attrs['class'] = 'datepickerfield'\n        self.fields['date_to'].widget.attrs['data-date-after'] = '#id_date_from'\n        self.fields['deadline'].widget.attrs['class'] = 'datetimepickerfield'\n\n    class Meta:\n        model = Event\n        fields = ('date_from', 'date_to')\n\n\nclass EventWizardDisplayForm(forms.Form):\n    show_on_dashboard = forms.BooleanField(\n        initial=True,\n        required=False,\n        label=_('Show on dashboard'),\n        help_text=_('Show this event on this website\\'s dashboard, once it is public?'),\n    )\n    primary_color = forms.CharField(required=False)\n    logo = forms.ImageField(\n        required=False,\n        help_text=_(\n            'If you provide a logo image, we will by default not show your events name and date in the page header. We will show your logo with a maximal height of 120 pixels.'\n        ),\n    )\n    display_header_pattern = forms.ChoiceField(\n        label=_('Frontpage header pattern'),\n        help_text=_(\n            'Choose how the frontpage header banner will be styled. Pattern source: <a href=\"http://www.heropatterns.com/\">heropatterns.com</a>, CC BY 4.0.'\n        ),\n        choices=(\n            ('', _('Plain')),\n            ('pcb', _('Circuits')),\n            ('bubbles', _('Circles')),\n            ('signal', _('Signal')),\n            ('topo', _('Topography')),\n            ('graph', _('Graph Paper')),\n        ),\n        required=False,\n        widget=HeaderSelect,\n    )\n\n    def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):\n        super().__init__(*args, **kwargs)\n\n\nclass EventWizardCopyForm(forms.Form):\n    @staticmethod\n    def copy_from_queryset(user):\n        return Event.objects.filter(\n            Q(\n                organiser_id__in=user.teams.filter(\n                    all_events=True, can_change_event_settings=True\n                ).values_list('organiser', flat=True)\n            )\n            | Q(\n                id__in=user.teams.filter(can_change_event_settings=True).values_list(\n                    'limit_events__id', flat=True\n                )\n            )\n        )\n\n    def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.fields['copy_from_event'] = forms.ModelChoiceField(\n            label=_('Copy configuration from'),\n            queryset=EventWizardCopyForm.copy_from_queryset(user),\n            widget=forms.RadioSelect,\n            empty_label=_('Do not copy'),\n            required=False,\n        )\n", "path": "src/pretalx/event/forms.py"}], "after_files": [{"content": "from django import forms\nfrom django.conf import settings\nfrom django.db.models import Q\nfrom django.utils.translation import ugettext_lazy as _\nfrom i18nfield.forms import I18nModelForm\n\nfrom pretalx.common.mixins.forms import ReadOnlyFlag\nfrom pretalx.event.models import Event, Organiser, Team, TeamInvite\nfrom pretalx.orga.forms.widgets import HeaderSelect, MultipleLanguagesWidget\n\n\nclass TeamForm(ReadOnlyFlag, I18nModelForm):\n    def __init__(self, *args, organiser=None, instance=None, **kwargs):\n        super().__init__(*args, instance=instance, **kwargs)\n        if instance and getattr(instance, 'pk', None):\n            self.fields.pop('organiser')\n            self.fields['limit_events'].queryset = instance.organiser.events.all()\n        else:\n            self.fields['organiser'].queryset = organiser\n\n    class Meta:\n        model = Team\n        fields = [\n            'name',\n            'organiser',\n            'all_events',\n            'limit_events',\n            'can_create_events',\n            'can_change_teams',\n            'can_change_organiser_settings',\n            'can_change_event_settings',\n            'can_change_submissions',\n            'is_reviewer',\n            'review_override_votes',\n        ]\n\n\nclass TeamInviteForm(ReadOnlyFlag, forms.ModelForm):\n    class Meta:\n        model = TeamInvite\n        fields = ('email',)\n\n\nclass OrganiserForm(ReadOnlyFlag, I18nModelForm):\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n\n        if kwargs.get('instance'):\n            self.fields['slug'].disabled = True\n\n    class Meta:\n        model = Organiser\n        fields = ('name', 'slug')\n\n\nclass EventWizardInitialForm(forms.Form):\n    locales = forms.MultipleChoiceField(\n        choices=settings.LANGUAGES,\n        label=_('Use languages'),\n        help_text=_('Choose all languages that your event should be available in.'),\n        widget=MultipleLanguagesWidget,\n    )\n\n    def __init__(self, *args, user=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.fields['organiser'] = forms.ModelChoiceField(\n            label=_('Organiser'),\n            queryset=Organiser.objects.filter(\n                id__in=user.teams.filter(can_create_events=True).values_list(\n                    'organiser', flat=True\n                )\n            )\n            if not user.is_administrator\n            else Organiser.objects.all(),\n            widget=forms.RadioSelect,\n            empty_label=None,\n            required=True,\n            help_text=_(\n                'The organiser running the event can copy settings from previous events and share team permissions across all or multiple events.'\n            ),\n        )\n        if len(self.fields['organiser'].choices) == 1:\n            self.fields['organiser'].initial = self.fields['organiser'].queryset.first()\n\n\nclass EventWizardBasicsForm(I18nModelForm):\n    def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):\n        self.locales = locales\n        super().__init__(*args, **kwargs, locales=locales)\n        self.fields['locale'].choices = [\n            (a, b) for a, b in settings.LANGUAGES if a in locales\n        ]\n        self.fields['slug'].help_text = _(\n            'This is the address your event will be available at. Should be short, only contain lowercase letters and numbers, and must be unique. We recommend some kind of abbreviation with less than 10 characters that can be easily remembered.'\n        )\n\n    def clean_slug(self):\n        slug = self.cleaned_data['slug']\n        qs = Event.objects.all()\n        if qs.filter(slug__iexact=slug).exists():\n            raise forms.ValidationError(\n                _(\n                    'This short name is already taken, please choose another one (or ask the owner of that event to add you to their team).'\n                )\n            )\n\n        return slug.lower()\n\n    class Meta:\n        model = Event\n        fields = ('name', 'slug', 'timezone', 'email', 'locale')\n\n\nclass EventWizardTimelineForm(forms.ModelForm):\n    deadline = forms.DateTimeField(\n        required=False, help_text=_('The default deadline for your Call for Papers.')\n    )\n\n    def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.fields['date_from'].widget.attrs['class'] = 'datepickerfield'\n        self.fields['date_to'].widget.attrs['class'] = 'datepickerfield'\n        self.fields['date_to'].widget.attrs['data-date-after'] = '#id_date_from'\n        self.fields['deadline'].widget.attrs['class'] = 'datetimepickerfield'\n\n    class Meta:\n        model = Event\n        fields = ('date_from', 'date_to')\n\n\nclass EventWizardDisplayForm(forms.Form):\n    show_on_dashboard = forms.BooleanField(\n        initial=True,\n        required=False,\n        label=_('Show on dashboard'),\n        help_text=_('Show this event on this website\\'s dashboard, once it is public?'),\n    )\n    primary_color = forms.CharField(required=False)\n    logo = forms.ImageField(\n        required=False,\n        help_text=_(\n            'If you provide a logo image, we will by default not show your events name and date in the page header. We will show your logo with a maximal height of 120 pixels.'\n        ),\n    )\n    display_header_pattern = forms.ChoiceField(\n        label=_('Frontpage header pattern'),\n        help_text=_(\n            'Choose how the frontpage header banner will be styled. Pattern source: <a href=\"http://www.heropatterns.com/\">heropatterns.com</a>, CC BY 4.0.'\n        ),\n        choices=(\n            ('', _('Plain')),\n            ('pcb', _('Circuits')),\n            ('bubbles', _('Circles')),\n            ('signal', _('Signal')),\n            ('topo', _('Topography')),\n            ('graph', _('Graph Paper')),\n        ),\n        required=False,\n        widget=HeaderSelect,\n    )\n\n    def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):\n        super().__init__(*args, **kwargs)\n\n\nclass EventWizardCopyForm(forms.Form):\n    @staticmethod\n    def copy_from_queryset(user):\n        return Event.objects.filter(\n            Q(\n                organiser_id__in=user.teams.filter(\n                    all_events=True, can_change_event_settings=True\n                ).values_list('organiser', flat=True)\n            )\n            | Q(\n                id__in=user.teams.filter(can_change_event_settings=True).values_list(\n                    'limit_events__id', flat=True\n                )\n            )\n        )\n\n    def __init__(self, *args, user=None, locales=None, organiser=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.fields['copy_from_event'] = forms.ModelChoiceField(\n            label=_('Copy configuration from'),\n            queryset=EventWizardCopyForm.copy_from_queryset(user),\n            widget=forms.RadioSelect,\n            empty_label=_('Do not copy'),\n            required=False,\n        )\n", "path": "src/pretalx/event/forms.py"}]}