Esempio n. 1
0
 def unlocked_leads(self):
     timeout = point_of_timeout()
     return self.leads.filter(Q(_locked_at__lte=timeout) | Q(_locked_at__isnull=True))
Esempio n. 2
0
 def locked_leads(self):
     timeout = point_of_timeout()
     return self.leads.filter(_locked_at__gt=timeout, _locked_at__isnull=False)