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

22 lines
625 B
Python
Raw Normal View History

2017-11-11 12:57:52 +00:00
from django import forms
from LandingPage.models import Submission, Season, Episode
2017-11-11 12:57:52 +00:00
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',)