Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Oops
  • Loading branch information
nathanborror committed Aug 17, 2010
1 parent f039627 commit 87e5989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basic/tools/templatetags/mathutils.py
Expand Up @@ -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)


Expand All @@ -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.