Browse files

Oops

  • Loading branch information...
1 parent f039627 commit 87e5989116b366619d4da378029d1cad959c651b @nathanborror committed Aug 17, 2010
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)

0 comments on commit 87e5989

Please sign in to comment.