mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
lots of shopping tweaks
This commit is contained in:
@@ -1436,6 +1436,7 @@ class ServerSettingsSerializer(serializers.Serializer):
|
||||
privacy_url = serializers.CharField()
|
||||
imprint_url = serializers.CharField()
|
||||
hosted = serializers.BooleanField()
|
||||
debug = serializers.BooleanField()
|
||||
|
||||
class Meta:
|
||||
fields = '__ALL__'
|
||||
|
||||
@@ -1980,6 +1980,7 @@ class ServerSettingsViewSet(viewsets.GenericViewSet):
|
||||
s['privacy_url'] = settings.PRIVACY_URL
|
||||
s['imprint_url'] = settings.IMPRINT_URL
|
||||
s['hosted'] = settings.HOSTED
|
||||
s['debug'] = settings.DEBUG
|
||||
|
||||
return Response(ServerSettingsSerializer(s, many=False).data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user