X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4fae06ea1b9fec1a45482ac043aa049ebce3f465..fa491172e51c164fd620f73859788dfce2ebc9ac:/src/documents/forms.py

diff --git a/src/documents/forms.py b/src/documents/forms.py
index 6598e75c..217a6e73 100644
--- a/src/documents/forms.py
+++ b/src/documents/forms.py
@@ -20,7 +20,9 @@ class DocumentCreateForm(forms.ModelForm):
 
     class Meta:
         model = Book
-        exclude = ['parent', 'parent_number', 'project']
+        fields = [
+            'title', 'slug', 'public', 'gallery'
+        ]
 
     def __init__(self, *args, **kwargs):
         super(DocumentCreateForm, self).__init__(*args, **kwargs)
@@ -151,7 +153,7 @@ class BookForm(forms.ModelForm):
 
     class Meta:
         model = Book
-        exclude = ['project']
+        exclude = ['project', 'cover']
 
     def __init__(self, *args, **kwargs):
         ret = super(BookForm, self).__init__(*args, **kwargs)