Skip to content

Instantly share code, notes, and snippets.

@igorgue
Created January 29, 2009 08:45
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 igorgue/54471 to your computer and use it in GitHub Desktop.
Save igorgue/54471 to your computer and use it in GitHub Desktop.
class Event(models.Model):
title = models.CharField(_('title'), max_length=255)
slug = models.SlugField(_('slug'))
description = models.TextField(_('description'))
# more code
class EventMetadata(models.Model):
event = models.ForeignKey(Event, verbose_name=_('event'),
related_name='metadata')
# more code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment