Add custom role creation to kaehmy form

This commit is contained in:
henu
2017-10-11 20:26:38 +03:00
parent d349916fef
commit 2cf41c9cb9
4 changed files with 45 additions and 8 deletions
+2 -4
View File
@@ -6,13 +6,11 @@ from webapp.models import OhlhafvChallenge, KaehmyForm
class KaehmyForm_Form(forms.ModelForm):
custom_role_name = forms.TextInput(
attrs={'size': 10, 'title': 'Name of the role', })
class Meta:
model = KaehmyForm
fields = ['name', 'email', 'year',
'preset_roles', 'custom_roles', 'text']
'preset_roles', 'custom_roles', 'custom_role_name',
'custom_role_is_board', 'text']
class OhlhafvForm(forms.ModelForm):