1
0
mirror of https://github.com/django/django.git synced 2025-02-09 08:55:32 +00:00

9 lines
233 B
Python

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)