Skip to content

Instantly share code, notes, and snippets.

@acmisiti
Created June 20, 2014 20:37
Show Gist options
  • Save acmisiti/178994510b0caa180322 to your computer and use it in GitHub Desktop.
Save acmisiti/178994510b0caa180322 to your computer and use it in GitHub Desktop.
how i create models now. i think it looks better
kwargs = {
'type_of_agreement' : SERVICE_LEVEL,
'cid' : company.id,
'title' : 'Terms of Service',
'signature_is_required' : True,
'has_been_signed' : False
}
agreement = MAgreement.objects.create(**kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment