Created
August 10, 2009 17:31
-
-
Save lprsd/165296 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_active_for_account(self,account,*args,**kwargs): | |
"""Returns a queryset that is | |
Not deleted | |
Not completed | |
For the specified account | |
""" | |
return self.filter(account = account,deleted=False,group_time__gte = datetime.now(), *args, **kwargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment