nuitdelinfo_2021/crew/models.py

14 lines
280 B
Python
Raw Permalink Normal View History

2021-12-02 21:57:32 +01:00
from django.db.models import Model, CharField, ManyToManyField, TextField
from nuitdelinfo_2021.models import People
class Crew(Model):
name = CharField()
members = ManyToManyField(People)
description = TextField()
2021-12-03 03:40:41 +01:00
def __str__(self):
return self.name