mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2026-01-02 01:27:03 -05:00
feat: Implement initial schema and add various API, service, and management command enhancements across the application.
This commit is contained in:
@@ -132,9 +132,7 @@ class EditSubmissionMixin(DetailView):
|
||||
status=400,
|
||||
)
|
||||
|
||||
return self.handle_edit_submission(
|
||||
request, changes, reason, source, submission_type
|
||||
)
|
||||
return self.handle_edit_submission(request, changes, reason, source, submission_type)
|
||||
|
||||
except json.JSONDecodeError:
|
||||
return JsonResponse(
|
||||
@@ -169,9 +167,7 @@ class PhotoSubmissionMixin(DetailView):
|
||||
try:
|
||||
obj = self.get_object()
|
||||
except (AttributeError, self.model.DoesNotExist):
|
||||
return JsonResponse(
|
||||
{"status": "error", "message": "Invalid object."}, status=400
|
||||
)
|
||||
return JsonResponse({"status": "error", "message": "Invalid object."}, status=400)
|
||||
|
||||
if not request.FILES.get("photo"):
|
||||
return JsonResponse(
|
||||
|
||||
Reference in New Issue
Block a user