Fixed DC panel form. PersonListField was raising a TypeError.
[redakcja.git] / apps / explorer / views.py
index 79160f8..1f53771 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 import urllib2
 import hg
 from librarian import html, parser, dcparser, ParseError, ValidationError
@@ -209,10 +210,9 @@ def dceditor_panel(request, path, repo):
 
     try:
         doc_text = repo.get_file(path, user_branch)
-
         document = parser.WLDocument.from_string(doc_text)
         form = forms.DublinCoreForm(info=document.book_info)       
-
+        print "FORM: ", form
         return direct_to_template(request, 'explorer/panels/dceditor.html', extra_context={
             'fpath': path,
             'form': form,