Skip to content

Commit

Permalink
Merge pull request #273 from lardbit/fix-initial-settings-preferred-m…
Browse files Browse the repository at this point in the history
…edia-type

Include preferred media category for non-admin users
  • Loading branch information
lardbit authored Jan 21, 2024
2 parents 9638bf2 + f283107 commit 87cb6dc
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 87cb6dc

Please sign in to comment.