mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 21:37:49 -05:00
Squashed commit of the following:
commit 52909e8117
Author: smilerz <smilerz@gmail.com>
Date: Wed Sep 6 15:54:23 2023 -0500
fix recipe counting issue on extended mixin
This commit is contained in:
@@ -56,8 +56,7 @@ class ExtendedRecipeMixin(serializers.ModelSerializer):
|
||||
api_serializer = None
|
||||
# extended values are computationally expensive and not needed in normal circumstances
|
||||
try:
|
||||
if str2bool(
|
||||
self.context['request'].query_params.get('extended', False)) and self.__class__ == api_serializer:
|
||||
if str2bool(self.context['request'].query_params.get('extended', False)) and self.__class__ == api_serializer:
|
||||
return fields
|
||||
except (AttributeError, KeyError):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user