Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@monokrome
Created August 15, 2011 19:57
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 monokrome/1147646 to your computer and use it in GitHub Desktop.
Save monokrome/1147646 to your computer and use it in GitHub Desktop.
class BlogForm(models.Model):
display_name = models.CharField(max_length=32)
form_class = models.CharField(max_length=128)
# Implement a way to import `form_class` and render the form.
class BlogPost(models.Model):
# Basic blog stuff.
form = models.ForeignKey(BlogForm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment