Skip to content
Snippets Groups Projects
Unverified Commit 6272a5ca authored by Luke Murphy's avatar Luke Murphy
Browse files

Look in the context instead. It appears there it seems.

parent 6089eae6
No related branches found
No related tags found
1 merge request!54Upgrade, Remove DYE, Fix up failing tests
...@@ -198,9 +198,9 @@ class AddEditItemView(FormView): ...@@ -198,9 +198,9 @@ class AddEditItemView(FormView):
# Add the width of the option row to the context # Add the width of the option row to the context
option_row_widget_count = 1 # We always have 'created' option_row_widget_count = 1 # We always have 'created'
if 'category' in kwargs['form'].fields: if 'category' in context['form'].fields:
option_row_widget_count += 1 option_row_widget_count += 1
if 'region' in kwargs['form'].fields: if 'region' in context['form'].fields:
option_row_widget_count += 1 option_row_widget_count += 1
context['option_row_width'] = 12 / option_row_widget_count context['option_row_width'] = 12 / option_row_widget_count
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment