Skip to content

Instantly share code, notes, and snippets.

@cargan
Created June 16, 2017 07:51
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 cargan/c84a56a5df26efa6d253181295566951 to your computer and use it in GitHub Desktop.
Save cargan/c84a56a5df26efa6d253181295566951 to your computer and use it in GitHub Desktop.
def batch_list_instance_query(self, **kwargs):
return EmployeeRoleEstablishment.objects.filter(kwargs)
def batch_list_instance_query(self, establishment):
return EmployeeRoleEstablishment.objects.filter(
establishment=establishment
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment