mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 23:09:16 +02:00
CLI for importing files with user libraries
This commit is contained in:
parent
616f459eb7
commit
3e49b2057a
9 changed files with 187 additions and 139 deletions
|
@ -350,7 +350,7 @@ class UploadViewSet(
|
|||
|
||||
def perform_create(self, serializer):
|
||||
upload = serializer.save()
|
||||
common_utils.on_commit(tasks.import_upload.delay, upload_id=upload.pk)
|
||||
common_utils.on_commit(tasks.process_upload.delay, upload_id=upload.pk)
|
||||
|
||||
@transaction.atomic
|
||||
def perform_destroy(self, instance):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue