UPD: more registration staff on dav_events.

This commit is contained in:
2019-06-03 17:10:52 +02:00
parent 2dbab0032f
commit 9104d69dd7
11 changed files with 411 additions and 46 deletions

View File

@@ -1,2 +1,3 @@
from . import generic
from . import events
from . import participant

View 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}),
}