distillery_type #3

This commit is contained in:
Kuroshini 2020-01-15 18:21:21 +03:00
parent 9b40d8e48e
commit fab351d800

View File

@ -68,7 +68,8 @@ class EstablishmentRetrieveView(EstablishmentMixinView, generics.RetrieveAPIView
serializer_class = serializers.EstablishmentDetailSerializer serializer_class = serializers.EstablishmentDetailSerializer
def get_queryset(self): def get_queryset(self):
return super().get_queryset().with_extended_related() return super().get_queryset().with_extended_related() \
.with_certain_tag_category_related('distillery_type', 'distillery_type')
class EstablishmentMobileRetrieveView(EstablishmentRetrieveView): class EstablishmentMobileRetrieveView(EstablishmentRetrieveView):