Skip to content

Commit

Permalink
Pass-in the initial value when performing a POST on Workflow Action. …
Browse files Browse the repository at this point in the history
…This fixes the call to self.changed_data, it allows django forms to be able to compare initial value with current value.

Fixes bug 1153697.

Change-Id: I21846487ada34f3b007a545bcdcba400bd044af5
  • Loading branch information
lin-hua-cheng committed Mar 12, 2013
1 parent d5d7188 commit 80f5126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horizon/workflows/base.py
Expand Up @@ -129,7 +129,7 @@ class within them:

def __init__(self, request, context, *args, **kwargs):
if request.method == "POST":
super(Action, self).__init__(request.POST)
super(Action, self).__init__(request.POST, initial=context)
else:
super(Action, self).__init__(initial=context)

Expand Down

0 comments on commit 80f5126

Please sign in to comment.