Created
February 18, 2019 15:15
-
-
Save eeriksp/186b8dfba94585c9efababc7ea7b6199 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 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