This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
Episodes.Community/Show/forms.py
2017-12-27 17:01:39 +02:00

27 lines
761 B
Python

from django import forms
from LandingPage.models import Submission, Season, Episode, Ban, User
class SubmissionForm(forms.ModelForm):
class Meta():
model = Submission
fields = ('url','tags',)
help_texts = {
'url': 'URL to your episode',
'tags': 'Describe your link. Comma-separated list of keywords'
}
class SeasonForm(forms.ModelForm):
class Meta():
model = Season
fields = ('name','number','description','artwork',)
class EpisodeForm(forms.ModelForm):
class Meta():
model = Episode
fields = ('episode','name','summary','airdate',)
class BanForm(forms.ModelForm):
class Meta():
model = Ban
fields = ('reason','expiration','permanent',)