Skip to content

Instantly share code, notes, and snippets.

@eeriksp
Created February 18, 2019 15:15
Show Gist options
  • Save eeriksp/186b8dfba94585c9efababc7ea7b6199 to your computer and use it in GitHub Desktop.
Save eeriksp/186b8dfba94585c9efababc7ea7b6199 to your computer and use it in GitHub Desktop.
def project_factory(director, name='Project__name', deadline=datetime.date.today()):
return Project.objects.create(
director=director,
name=name,
deadline=deadline
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment