Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
QuvonchbekBobojonov committed Dec 10, 2024
1 parent e3429f2 commit 1203073
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="django-success-response",
version="1.0.1",
version="1.0.2",
description="Django app for customizing response",
author="Quvonchbek Bobojonov",
author_email="[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion src/django_success_response.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: django-success-response
Version: 1.0.1
Version: 1.0.2
Summary: Django app for customizing response
Home-page: https://github.com/QuvonchbekBobojonov/django-success-response
Author: Quvonchbek Bobojonov
Expand Down
2 changes: 1 addition & 1 deletion src/success_response/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def success_exception_handler(exc, context):
# Ensure the response data is a dictionary for consistent formatting.
if not isinstance(data, dict):
# Extract the first error message if the data isn't already a dictionary.
data = {'detail': str(data)}
data = {'detail': ''.join(i for i in data)}

# Wrap the error response in a standardized format.
response = SuccessResponse(data, success=False)
Expand Down

0 comments on commit 1203073

Please sign in to comment.