Skip to content

Commit

Permalink
The QuerySet ms doesn't have the method pop(), so we just access the …
Browse files Browse the repository at this point in the history
…first item directly with the 0 index
  • Loading branch information
ruiwen committed Sep 24, 2011
1 parent 10a1cf8 commit 12caf96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hado/models.py
Expand Up @@ -66,7 +66,7 @@ def member_since(self):
if not hasattr(self, '__member_since'):
ms = self.contracts.filter(ctype__desc='Membership').order_by('start')[0:1]
if len(ms) > 0:
self.__member_since = ms.pop().start
self.__member_since = ms[0].start
else:
self.__member_since = None

Expand Down

0 comments on commit 12caf96

Please sign in to comment.