Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the incorrect req and res schema for swagger #2793

Merged
merged 14 commits into from
Jan 30, 2025
Prev Previous commit
Next Next commit
cleanup
  • Loading branch information
DraKen0009 committed Jan 28, 2025

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 623a70fd7e14de139336763e4a09a176f8dd7a85
5 changes: 0 additions & 5 deletions care/emr/api/viewsets/organization.py
Original file line number Diff line number Diff line change
@@ -144,11 +144,6 @@ def authorize_create(self, instance):
return True

def get_queryset(self):
if getattr(
self, "swagger_fake_view", False
): # This is used to avoid making db calls during schema generation
return None

queryset = (
super()
.get_queryset()
4 changes: 0 additions & 4 deletions care/emr/api/viewsets/patient.py
Original file line number Diff line number Diff line change
@@ -52,10 +52,6 @@ def authorize_destroy(self, instance):
raise PermissionDenied("Cannot delete patient")

def get_queryset(self):
if getattr(
self, "swagger_fake_view", False
): # This is used to avoid making db calls during schema generation
return None
qs = (
super()
.get_queryset()