Fix #348, #474, #557, #740, #928: improved deduplication logic to prevent skipped files during import

This commit is contained in:
Eliot Berriot 2020-01-29 15:33:50 +01:00
parent 18791e57f6
commit 61cf04b376
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
5 changed files with 162 additions and 2 deletions

View file

@ -475,6 +475,7 @@ def get_artist(release_list):
class Track(APIModelMixin):
mbid = models.UUIDField(db_index=True, null=True, blank=True)
title = models.CharField(max_length=MAX_LENGTHS["TRACK_TITLE"])
artist = models.ForeignKey(Artist, related_name="tracks", on_delete=models.CASCADE)
disc_number = models.PositiveIntegerField(null=True, blank=True)