Server-side refactor.
[redakcja.git] / apps / explorer / forms.py
index e648aa5..f7fcf07 100644 (file)
@@ -5,11 +5,9 @@ from librarian import dcparser
 
 from explorer import models
 
 
 from explorer import models
 
-
 class BookForm(forms.Form):
 class BookForm(forms.Form):
-    text = forms.CharField(widget=forms.Textarea)
-    commit_message = forms.CharField()
-    user = forms.CharField()
+    content = forms.CharField(widget=forms.Textarea)
+    message = forms.CharField(required=False)
 
 class ImageFoldersForm(forms.Form):
     folders = forms.ChoiceField(required=False)
 
 class ImageFoldersForm(forms.Form):
     folders = forms.ChoiceField(required=False)