Commit e141d0f0 authored by fred's avatar fred

exclude download count from soundfile form

parent 00d41545
......@@ -162,7 +162,7 @@ class EmissionForm(forms.ModelForm):
class EpisodeForm(forms.ModelForm):
class Meta:
model = Episode
exclude = ('slug', 'has_focus', 'got_focus', 'effective_start', 'effective_end', 'download_count')
exclude = ('slug', 'has_focus', 'got_focus', 'effective_start', 'effective_end')
widgets = {'emission': forms.HiddenInput(), 'tags': TagWidget()}
def save(self, commit=True):
......@@ -241,7 +241,7 @@ class ScheduleForm(forms.ModelForm):
class SoundFileForm(forms.ModelForm):
class Meta:
model = SoundFile
exclude = ('has_focus', 'got_focus', 'duration')
exclude = ('has_focus', 'got_focus', 'duration', 'download_count')
widgets = {
'episode': forms.HiddenInput(),
'file': JqueryFileUploadInput(),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment