mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 10:39:34 +02:00
Fix #548: Mods can now change a library visibility through the admin UI
This commit is contained in:
parent
c885c10be1
commit
4d0fedab1f
5 changed files with 55 additions and 2 deletions
|
@ -500,6 +500,15 @@ class ManageLibrarySerializer(serializers.ModelSerializer):
|
|||
"followers_url",
|
||||
"actor",
|
||||
]
|
||||
read_only_fields = [
|
||||
"fid",
|
||||
"uuid",
|
||||
"id",
|
||||
"url",
|
||||
"domain",
|
||||
"actor",
|
||||
"creation_date",
|
||||
]
|
||||
|
||||
def get_uploads_count(self, obj):
|
||||
return getattr(obj, "_uploads_count", obj.uploads_count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue