UPD: more registration staff on dav_events.
This commit is contained in:
15
dav_events/forms/participant.py
Normal file
15
dav_events/forms/participant.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from django import forms
|
||||
|
||||
from ..models import Participant
|
||||
|
||||
|
||||
class ParticipantForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Participant
|
||||
exclude = ['event', 'created_at', 'position', 'purge_at']
|
||||
widgets = {
|
||||
'emergency_contact': forms.Textarea(attrs={'rows': 4}),
|
||||
'experience': forms.Textarea(attrs={'rows': 5}),
|
||||
'note': forms.Textarea(attrs={'rows': 5}),
|
||||
}
|
||||
Reference in New Issue
Block a user