Commit 9db4406f authored by fred's avatar fred
Browse files

add tag field to episode edit form

parent 39291c87
......@@ -13,6 +13,8 @@ from django.utils.safestring import mark_safe
from django.conf import settings
from django.template.loader import render_to_string
from taggit.forms import TagWidget
from .models import Emission, Episode, Diffusion, Schedule, SoundFile
......@@ -133,7 +135,8 @@ class EpisodeForm(forms.ModelForm):
class Meta:
model = Episode
exclude = ('slug',)
widgets = {'emission': forms.HiddenInput()}
widgets = {'emission': forms.HiddenInput(),
'tags': TagWidget()}
def save(self, commit=True):
if not self.instance.slug:
......
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