Files
Eiro/backend/api/users/models/team.py
T

24 lines
659 B
Python

from django.db import models
from django.utils.translation import gettext_lazy as _
from api.core.models.trackable_model import TrackableModel
class Team(TrackableModel):
"""
Model representing a team within the user account system.
A team can contain multiple users that are linked together for collaboration.
"""
name = models.CharField(max_length=255, unique=True, verbose_name=_("nom"))
description = models.TextField(
blank=True, verbose_name=_("description"), default=""
)
class Meta:
verbose_name = _("Team")
verbose_name_plural = _("Teams")
def __str__(self):
return self.name