Skip to content
Browse files

The QuerySet ms doesn't have the method pop(), so we just access the …

…first item directly with the 0 index
  • Loading branch information...
1 parent 10a1cf8 commit 12caf96e8cd4c232bd30a124507f279ada79d696 @ruiwen ruiwen committed Sep 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 hado/models.py
View
2 hado/models.py
@@ -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

0 comments on commit 12caf96

Please sign in to comment.
Something went wrong with that request. Please try again.