mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 21:12:11 +02:00
Resolve "Broken 'Less listened' Radio in develop version"
This commit is contained in:
parent
4ce59adcd5
commit
fcf223ad03
3 changed files with 17 additions and 4 deletions
|
@ -8,7 +8,6 @@ from rest_framework import serializers
|
|||
from funkwhale_api.moderation import filters as moderation_filters
|
||||
from funkwhale_api.music.models import Artist, Track
|
||||
from funkwhale_api.tags.models import Tag
|
||||
from funkwhale_api.users.models import User
|
||||
|
||||
from . import filters, models
|
||||
from .registries import registry
|
||||
|
@ -263,9 +262,7 @@ class ArtistRadio(RelatedObjectRadio):
|
|||
|
||||
|
||||
@registry.register(name="less-listened")
|
||||
class LessListenedRadio(RelatedObjectRadio):
|
||||
model = User
|
||||
|
||||
class LessListenedRadio(SessionRadio):
|
||||
def clean(self, instance):
|
||||
instance.related_object = instance.user
|
||||
super().clean(instance)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue