optimize slightly, allow caller to pass in the list of units in a subsection, so we don't have to refetch

This commit is contained in:
Chris Dodge
2012-10-17 16:17:52 -04:00
parent a88bb7caf3
commit 1a6845b07f
3 changed files with 10 additions and 4 deletions

View File

@@ -29,7 +29,7 @@
</div>
<div class="unit-list">
<label>Units:</label>
${units.enum_units(subsection)}
${units.enum_units(subsection, subsection_units=subsection_units)}
</div>
<div>
<label>Policy:</label>