feat: Implement initial schema and add various API, service, and management command enhancements across the application.

This commit is contained in:
pacnpal
2026-01-01 15:13:01 -05:00
parent c95f99ca10
commit b243b17af7
413 changed files with 11164 additions and 17433 deletions

View File

@@ -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(