18 lines
508 B
Python
18 lines
508 B
Python
from django import forms
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from webapp.models import OhlhafvChallenge, KaehmyForm
|
|
|
|
class KaehmyForm_Form(forms.ModelForm):
|
|
|
|
class Meta:
|
|
model = KaehmyForm
|
|
fields = ['name', 'email', 'phone_number', 'year', 'preset_roles', 'custom_roles', 'text']
|
|
|
|
|
|
class OhlhafvForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
model = OhlhafvChallenge
|
|
fields = ['challenger', 'challenger_email', 'victim', 'victim_email', 'series', 'message']
|