Created
January 29, 2009 08:45
-
-
Save igorgue/54471 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
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