mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-07-05 18:03:57 +02:00
Auteur en many to many
This commit is contained in:
@ -9,7 +9,7 @@ class Auteur(models.Model):
|
||||
class Media(models.Model):
|
||||
titre = models.CharField(max_length=255)
|
||||
cote = models.CharField(max_length=31)
|
||||
auteur = models.ForeignKey('Auteur', on_delete=models.PROTECT)
|
||||
auteur = models.ManyToManyField('Auteur')
|
||||
# type = TODO
|
||||
|
||||
def __str__(self):
|
||||
|
Reference in New Issue
Block a user