]> git.parisson.com Git - telemeta.git/commitdiff
fix collection edit
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 28 Nov 2014 12:00:42 +0000 (13:00 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 28 Nov 2014 12:00:42 +0000 (13:00 +0100)
telemeta/views/collection.py

index b83f3589aa930ddcd1085c11256d831af7ae3b56..eac26610faab1144382079cf69d3961ed1e9b9a6 100644 (file)
@@ -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):