mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 11:49:24 +02:00
Fixed an issue with excluded artists
This commit is contained in:
parent
9d7cd00649
commit
d23d69e11d
1 changed files with 1 additions and 1 deletions
|
@ -117,10 +117,10 @@ class PlaylistSerializer(serializers.ModelSerializer):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
excluded_artists = []
|
||||||
try:
|
try:
|
||||||
user = self.context["request"].user
|
user = self.context["request"].user
|
||||||
except (KeyError, AttributeError):
|
except (KeyError, AttributeError):
|
||||||
excluded_artists = []
|
|
||||||
user = None
|
user = None
|
||||||
if user and user.is_authenticated:
|
if user and user.is_authenticated:
|
||||||
excluded_artists = list(
|
excluded_artists = list(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue