mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 07:49:23 +02:00
Fix #193: broken federated import
This commit is contained in:
parent
e31bed050e
commit
23d21b0fdb
4 changed files with 16 additions and 15 deletions
|
@ -106,7 +106,7 @@ class Artist(APIModelMixin):
|
|||
kwargs.update({'name': name})
|
||||
return cls.objects.get_or_create(
|
||||
name__iexact=name,
|
||||
defaults=kwargs)[0]
|
||||
defaults=kwargs)
|
||||
|
||||
|
||||
def import_artist(v):
|
||||
|
@ -196,7 +196,7 @@ class Album(APIModelMixin):
|
|||
kwargs.update({'title': title})
|
||||
return cls.objects.get_or_create(
|
||||
title__iexact=title,
|
||||
defaults=kwargs)[0]
|
||||
defaults=kwargs)
|
||||
|
||||
|
||||
def import_tags(instance, cleaned_data, raw_data):
|
||||
|
@ -403,7 +403,7 @@ class Track(APIModelMixin):
|
|||
kwargs.update({'title': title})
|
||||
return cls.objects.get_or_create(
|
||||
title__iexact=title,
|
||||
defaults=kwargs)[0]
|
||||
defaults=kwargs)
|
||||
|
||||
|
||||
class TrackFile(models.Model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue