mirror of
https://github.com/leaders-of-digital-9-task/backend.git
synced 2024-11-22 01:16:33 +03:00
minor bug fixes
This commit is contained in:
parent
1e8c57efaf
commit
1bf80a75b5
|
@ -294,7 +294,7 @@ SPECTACULAR_SETTINGS = {
|
||||||
"SERVE_INCLUDE_SCHEMA": False,
|
"SERVE_INCLUDE_SCHEMA": False,
|
||||||
"SERVE_PERMISSIONS": ["rest_framework.permissions.AllowAny"],
|
"SERVE_PERMISSIONS": ["rest_framework.permissions.AllowAny"],
|
||||||
"SERVERS": [
|
"SERVERS": [
|
||||||
{"url": "https://dev.akarpov.ru", "description": "Development server"},
|
{"url": "https://dev2.akarpov.ru", "description": "Development server"},
|
||||||
{"url": "http://127.0.0.1:8000", "description": "Development server"},
|
{"url": "http://127.0.0.1:8000", "description": "Development server"},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,7 +173,7 @@ class ListUpdateDicomImageNumberApi(GenericAPIView):
|
||||||
)
|
)
|
||||||
def put(self, request, dicom_slug):
|
def put(self, request, dicom_slug):
|
||||||
dicom = get_object_or_404(Dicom, slug=dicom_slug)
|
dicom = get_object_or_404(Dicom, slug=dicom_slug)
|
||||||
dicom.shapes.delete()
|
[x.delete() for x in dicom.shapes]
|
||||||
serializer = BaseShapeLayerSerializer(
|
serializer = BaseShapeLayerSerializer(
|
||||||
data=request.data, many=True, context={"request": request}
|
data=request.data, many=True, context={"request": request}
|
||||||
)
|
)
|
||||||
|
|
|
@ -58,6 +58,7 @@ class Circle(BaseShape):
|
||||||
return {
|
return {
|
||||||
"id": self.id,
|
"id": self.id,
|
||||||
"type": "circle",
|
"type": "circle",
|
||||||
|
"layer": self.layer,
|
||||||
"radius": self.radius,
|
"radius": self.radius,
|
||||||
"coordinates": self.coordinates,
|
"coordinates": self.coordinates,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user