from explorer import models
-
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)
self.fields[name].initial = value
def save(self, repository, path):
- file_contents = repository.get_file(path).data()
+ file_contents = repository.get_file(path)
doc = etree.fromstring(file_contents)
book_info = dcparser.BookInfo()