1
0
mirror of https://github.com/django/django.git synced 2025-01-27 18:49:23 +00:00

9 lines
233 B
Python
Raw Normal View History

from django.db import models
from django.utils.translation import ugettext_lazy as _
class Group(models.Model):
name = models.CharField(_('name'), max_length=100)
class Event(models.Model):
group = models.ForeignKey(Group)