Skip to content

Commit

Permalink
Made the "with" syntax compatible with django 1.2.x, just in case. 1.…
Browse files Browse the repository at this point in the history
…3 handles both just fine.
  • Loading branch information
chrisglass committed Jul 12, 2011
1 parent fef070c commit df6f38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -82,7 +82,7 @@ Next create the drop down lists of OptionsGroups and Options:
<h2>Variations:</h2>
{% for option_group in option_groups %}
<label for="add_item_option_group_{{ option_group.id }}">{{ option_group.name }}</label>
{% with options=option_group|get_options %}
{% with option_group|get_options as options %}
<select name="add_item_option_group_{{ option_group.id }}">
{% for option in options %}
<option value="{{ option.id }}">{{ option.name }}</option>
Expand Down

0 comments on commit df6f38e

Please sign in to comment.