19 lines
507 B
Python
19 lines
507 B
Python
"""File containing Ohlhafv forms."""
|
|
|
|
from django import forms
|
|
from django.utils.translation import ugettext_lazy as _
|
|
from django.core.exceptions import ValidationError
|
|
|
|
from ohlhafv.models import OhlhafvChallenge
|
|
|
|
|
|
class OhlhafvForm(forms.ModelForm):
|
|
"""Class representing Ohlhafv form."""
|
|
|
|
class Meta:
|
|
"""Meta class for Ohlhafv form."""
|
|
|
|
model = OhlhafvChallenge
|
|
fields = ['challenger', 'challenger_email',
|
|
'victim', 'victim_email', 'series', 'message']
|