mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Add waiting list
This commit is contained in:
13
src/pretix/presale/forms/waitinglist.py
Normal file
13
src/pretix/presale/forms/waitinglist.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django import forms
|
||||
|
||||
from pretix.base.models import WaitingListEntry
|
||||
|
||||
|
||||
class WaitingListForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = WaitingListEntry
|
||||
fields = ('email',)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.event = kwargs.pop('event')
|
||||
super().__init__(*args, **kwargs)
|
||||
Reference in New Issue
Block a user