18 lines
469 B
Python
18 lines
469 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", "victim", "victim_email", "series", "message"]
|