diff --git a/backend/core/base_models.py b/backend/core/base_models.py index e125f8cd1..264567870 100644 --- a/backend/core/base_models.py +++ b/backend/core/base_models.py @@ -90,9 +90,9 @@ def clean(self) -> None: if not self.is_unique_in_scope(scope=scope, fields_to_check=_fields_to_check): for field in _fields_to_check: if not self.is_unique_in_scope(scope=scope, fields_to_check=[field]): - field_errors[ - field - ] = f"{getattr(self, field)} is already used in this scope. Please choose another value." + field_errors[field] = ( + f"{getattr(self, field)} is already used in this scope. Please choose another value." + ) super().clean() if field_errors: raise ValidationError(field_errors) diff --git a/backend/serdes/views.py b/backend/serdes/views.py index f22adbb48..b15e6d6e5 100644 --- a/backend/serdes/views.py +++ b/backend/serdes/views.py @@ -22,9 +22,9 @@ def get(self, request, *args, **kwargs): return Response(status=status.HTTP_403_FORBIDDEN) response = HttpResponse(content_type="application/json") timestamp = datetime.now().strftime("%Y%m%d-%H%M%S") - response[ - "Content-Disposition" - ] = f'attachment; filename="ciso-assistant-db-{timestamp}.json"' + response["Content-Disposition"] = ( + f'attachment; filename="ciso-assistant-db-{timestamp}.json"' + ) buffer = io.StringIO() buffer.write(f'[{{"meta": [{{"media_version": "{VERSION}"}}]}},\n')