Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Oops

  • Loading branch information...
commit 87e5989116b366619d4da378029d1cad959c651b 1 parent f039627
@nathanborror authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 basic/tools/templatetags/mathutils.py
View
4 basic/tools/templatetags/mathutils.py
@@ -11,7 +11,7 @@ def min(object_list, field):
Example:
{{ forecast|min:"high_temp" }}
"""
- value_list = [getattr(o, obj, None) for o in object_list]
+ value_list = [getattr(o, field, None) for o in object_list]
return min(value_list)
@@ -23,5 +23,5 @@ def max(object_list, field):
Example:
{{ forecast|max:"high_temp" }}
"""
- value_list = [getattr(o, obj, None) for o in object_list]
+ value_list = [getattr(o, field, None) for o in object_list]
return max(value_list)
Please sign in to comment.
Something went wrong with that request. Please try again.