Skip to content

Instantly share code, notes, and snippets.

@bruth
Created September 5, 2011 02:58
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 bruth/1193964 to your computer and use it in GitHub Desktop.
Save bruth/1193964 to your computer and use it in GitHub Desktop.
class Author(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
author = Author('John', 'Doe')
author.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment