Skip to content

Instantly share code, notes, and snippets.

@lprsd
Created August 10, 2009 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lprsd/165296 to your computer and use it in GitHub Desktop.
Save lprsd/165296 to your computer and use it in GitHub Desktop.
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