Skip to content

Commit

Permalink
Moving where is_formset variable is set into get_response_dict meth…
Browse files Browse the repository at this point in the history
…od, where it should be
  • Loading branch information
maraujop committed May 19, 2011
1 parent aae9e24 commit 3193f82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions uni_form/templatetags/uni_form_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ def get_render(self, context):
else:
response_dict.update({'form': actual_form})

response_dict.update({
'is_formset': is_formset,
})

return Context(response_dict)

def get_response_dict(self, attrs, context, is_formset):
Expand All @@ -102,6 +98,7 @@ def get_response_dict(self, attrs, context, is_formset):
'form_error_title': attrs.get("form_error_title", None),
'formset_error_title': attrs.get("formset_error_title", None),
'inputs': attrs.get('inputs', []),
'is_formset': is_formset,
}

if context.has_key('csrf_token'):
Expand Down

0 comments on commit 3193f82

Please sign in to comment.