22 lines
625 B
Python
22 lines
625 B
Python
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):
|
|
class Meta():
|
|
model = Season
|
|
fields = ('name','number','description','artwork',)
|
|
|
|
class EpisodeForm(forms.ModelForm):
|
|
class Meta():
|
|
model = Episode
|
|
fields = ('episode','name','summary','airdate',)
|