mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 05:49:56 +02:00
cli import files with replace option
This commit is contained in:
parent
bb79d454af
commit
8103ea541f
3 changed files with 23 additions and 14 deletions
|
@ -567,7 +567,7 @@ class ImportBatch(models.Model):
|
|||
|
||||
class ImportJob(models.Model):
|
||||
uuid = models.UUIDField(unique=True, db_index=True, default=uuid.uuid4)
|
||||
update_if_duplicate = models.BooleanField(default=False)
|
||||
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