Skip to content

Commit

Permalink
Corrects handling of '0' for cast ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerrp committed Apr 14, 2012
1 parent 23fa543 commit 5004545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmdb3/util.py
Expand Up @@ -124,7 +124,7 @@ def __get__(self, inst, owner):
return inst._data[self.field]

def __set__(self, inst, value):
if value:
if value is not None:
value = self.handler(value)
else:
value = self.default
Expand Down

0 comments on commit 5004545

Please sign in to comment.