From 64f72dac38544ad5d59cca5d6ebdc7a427560b7e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 28 Nov 2014 13:00:42 +0100 Subject: [PATCH] fix collection edit --- telemeta/views/collection.py | 6 ++++++ 1 file changed, 6 insertions(+) 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): -- 2.39.5