Skip to content

Commit

Permalink
Fixed Swagger warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
axelstudios committed Sep 20, 2024
1 parent 5282570 commit 954b14a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions seed/views/v3/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@


class SensorViewSet(generics.GenericAPIView, viewsets.ViewSet, OrgMixin, ProfileIdMixin):
# For the Swagger page, GenericAPIView asserts a value exists for `queryset`
queryset = Sensor.objects.none()

@ajax_request_class
@has_perm_class("requires_member")
@has_hierarchy_access(property_view_id_kwarg="property_pk")
Expand Down
2 changes: 2 additions & 0 deletions seed/views/v3/tax_lot_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class TaxLotPropertyViewSet(GenericViewSet, OrgMixin):
viewset for any tax lot / property join API call.
"""

# For the Swagger page, GenericViewSet asserts a value exists for `queryset`
queryset = TaxLotProperty.objects.none()
renderer_classes = (JSONRenderer,)
serializer_class = TaxLotPropertySerializer

Expand Down

0 comments on commit 954b14a

Please sign in to comment.