Skip to content

Commit

Permalink
include preferred media category for non-admin users
Browse files Browse the repository at this point in the history
  • Loading branch information
lardbit committed Jan 21, 2024
1 parent 9638bf2 commit f283107
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nefarious/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ class NefariousPartialSettingsSerializer(NefariousSettingsSerializer):
class Meta:
model = NefariousSettings
# only include specific fields
fields = ('tmdb_configuration', 'jackett_default_token', 'websocket_url', 'is_debug')
fields = (
'tmdb_configuration', 'jackett_default_token', 'websocket_url',
'is_debug', 'preferred_media_category',
)


class WatchMovieSerializer(UserReferenceSerializerMixin, serializers.ModelSerializer):
Expand Down

0 comments on commit f283107

Please sign in to comment.