mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 01:49:17 +02:00
Merge branch '222-update-import' into 'develop'
Resolve "Add flag during import to replace already present tracks with new version" Closes #222 See merge request funkwhale/funkwhale!264
This commit is contained in:
commit
2182227f50
8 changed files with 89 additions and 16 deletions
|
@ -567,6 +567,7 @@ class ImportBatch(models.Model):
|
|||
|
||||
class ImportJob(models.Model):
|
||||
uuid = models.UUIDField(unique=True, db_index=True, default=uuid.uuid4)
|
||||
replace_if_duplicate = models.BooleanField(default=False)
|
||||
batch = models.ForeignKey(
|
||||
ImportBatch, related_name="jobs", on_delete=models.CASCADE
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue