fix: use constrained foreign key for files track_type

This commit is contained in:
jo 2022-06-08 16:31:01 +02:00 committed by Kyle Robbertze
parent bcaea16c19
commit db976881f0
26 changed files with 1233 additions and 113 deletions

View file

@ -2,11 +2,12 @@ from django.db import models
class File(models.Model):
library = models.CharField(
max_length=16,
library = models.ForeignKey(
"storage.Library",
models.DO_NOTHING,
blank=True,
null=True,
db_column="track_type",
db_column="track_type_id",
)
owner = models.ForeignKey(