from django import forms
from LandingPage.models import Submission, Season, Episode
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):
model = Season
fields = ('name','number','description','artwork',)
class EpisodeForm(forms.ModelForm):
model = Episode
fields = ('episode','name','summary','airdate',)