mirror of
https://github.com/Damillora/Altessimo
synced 2024-11-21 21:47:33 +00:00
Fix syntax
This commit is contained in:
parent
2af9f5e639
commit
ba484b59a5
@ -13,7 +13,7 @@ class ArtistManager(models.Manager):
|
|||||||
def comma_to_qs(self, artists_str):
|
def comma_to_qs(self, artists_str):
|
||||||
final_ids = []
|
final_ids = []
|
||||||
for artist in artists_str.split(','):
|
for artist in artists_str.split(','):
|
||||||
obj, created = self.create_or_new(strip(artist))
|
obj, created = self.create_or_new(artist.strip())
|
||||||
final_ids.append(obj.id)
|
final_ids.append(obj.id)
|
||||||
qs = self.get_queryset().filter(id__in=final_ids).distinct()
|
qs = self.get_queryset().filter(id__in=final_ids).distinct()
|
||||||
return qs
|
return qs
|
||||||
|
Loading…
Reference in New Issue
Block a user