Add custom role creation to kaehmy form
This commit is contained in:
+2
-4
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user