From: Guillaume Pellerin Date: Fri, 28 Nov 2014 12:00:42 +0000 (+0100) Subject: fix collection edit X-Git-Tag: 1.5.0rc2~12 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=64f72dac38544ad5d59cca5d6ebdc7a427560b7e;p=telemeta.git fix collection edit --- diff --git a/telemeta/views/collection.py b/telemeta/views/collection.py index b83f3589..eac26610 100644 --- a/telemeta/views/collection.py +++ b/telemeta/views/collection.py @@ -315,6 +315,12 @@ class CollectionEditView(CollectionViewMixin, UpdateWithInlinesView): def get_success_url(self): return reverse_lazy('telemeta-collection-detail', kwargs={'public_id':self.kwargs['public_id']}) + def get_context_data(self, **kwargs): + context = super(CollectionCopyView, self).get_context_data(**kwargs) + collection = self.get_object() + context['collection'] = collection + return context + class CollectionAddView(CollectionViewMixin, CreateWithInlinesView):