Commit df27e510 by benjaoming

Fixed posting data to views.article.Preview

parent c775a189
...@@ -119,7 +119,8 @@ class EditForm(forms.Form, SpamProtectionMixin): ...@@ -119,7 +119,8 @@ class EditForm(forms.Form, SpamProtectionMixin):
# is reset to match the actual current revision. # is reset to match the actual current revision.
data = None data = None
if len(args) > 0: if len(args) > 0:
data = args[0] args = list(args)
data = args.pop(0)
if not data: if not data:
data = kwargs.get('data', None) data = kwargs.get('data', None)
if data: if data:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment