Commit df27e510 by benjaoming

Fixed posting data to views.article.Preview

parent c775a189
......@@ -119,7 +119,8 @@ class EditForm(forms.Form, SpamProtectionMixin):
# is reset to match the actual current revision.
data = None
if len(args) > 0:
data = args[0]
args = list(args)
data = args.pop(0)
if not data:
data = kwargs.get('data', None)
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