1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-12-22 09:53:45 +00:00

Fix syntax

This commit is contained in:
Damillora 2020-12-16 15:56:29 +07:00
parent 2af9f5e639
commit ba484b59a5

View File

@ -13,7 +13,7 @@ class ArtistManager(models.Manager):
def comma_to_qs(self, artists_str):
final_ids = []
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)
qs = self.get_queryset().filter(id__in=final_ids).distinct()
return qs