This commit is contained in:
behruz-dev
2025-12-01 18:17:36 +05:00
parent 95c3b5f4e9
commit d82c1ed5b5

View File

@@ -156,7 +156,7 @@ class UserLocationViewSet(viewsets.GenericViewSet, ResponseMixin):
@action(detail=True, methods=["delete"], url_path="delete")
def delete(self, request, pk=None):
try:
location = Location.objects.filter(id=pk).first()
location = UserLocation.objects.filter(id=pk).first()
if not location:
return self.failure_response(
data={}, message="location topilmadi", status_code=404