Fix after rebase

This commit is contained in:
smilerz
2021-11-21 10:59:11 -06:00
parent a24f09c419
commit 2b41fbc9f8
11 changed files with 6118 additions and 33020 deletions

View File

@ -37,7 +37,8 @@ class ExtendedRecipeMixin(serializers.ModelSerializer):
api_serializer = None
# extended values are computationally expensive and not needed in normal circumstances
try:
if bool(int(self.context['request'].query_params.get('extended', False))) and self.__class__ == api_serializer:
if bool(int(
self.context['request'].query_params.get('extended', False))) and self.__class__ == api_serializer:
return fields
except (AttributeError, KeyError) as e:
pass