Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…first item directly with the 0 index
  • Loading branch information...
commit 12caf96e8cd4c232bd30a124507f279ada79d696 1 parent 10a1cf8
Ruiwen Chua ruiwen authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  hado/models.py
2  hado/models.py
@@ -66,7 +66,7 @@ def member_since(self):
66 66 if not hasattr(self, '__member_since'):
67 67 ms = self.contracts.filter(ctype__desc='Membership').order_by('start')[0:1]
68 68 if len(ms) > 0:
69   - self.__member_since = ms.pop().start
  69 + self.__member_since = ms[0].start
70 70 else:
71 71 self.__member_since = None
72 72

0 comments on commit 12caf96

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