]> git.parisson.com Git - telemeta.git/commitdiff
Compatibility with Django 1.8
authorlluc <leger.luc@gmail.com>
Wed, 24 May 2017 09:21:24 +0000 (11:21 +0200)
committerGitHub <noreply@github.com>
Wed, 24 May 2017 09:21:24 +0000 (11:21 +0200)
To fixing a bug : can not add a new _corpus_ or  _fonds_.

telemeta/views/resource.py

index 86f86a299e3159536a894a8b8be82222cfb318ef..95cda16f2e1a789165c4c5b9da7281d4e8557f26 100644 (file)
@@ -268,6 +268,7 @@ class ResourceDetailDCView(ResourceDetailView):
 class ResourceAddView(ResourceMixin, CreateView):
 
     template_name = 'telemeta/resource_add.html'
+    fields = '__all__'
 
     def get_queryset(self):
         self.type = self.kwargs['type']