kpsul/clubs/models.py
Martin Pépin 380e38519b
New app: clubs
- Clubs will be used both by the cof and the bds app.
- For now, they are only visible in development.
2019-10-16 19:58:12 +02:00

17 lines
482 B
Python

from django.contrib.auth import get_user_model
from django.db import models
from django.utils.translation import gettext_lazy as _
User = get_user_model()
class Club(models.Model):
name = models.CharField(_("nom du club"), max_length=1000, unique=True)
description = models.TextField(_("description"), blank=True)
respos = models.ManyToManyField(
User, verbose_name=_("responsables du club"), blank=True
)
def __str__(self):
return self.name