From 1203073d08eb1e750f018b69bbeecd5a19aa3183 Mon Sep 17 00:00:00 2001 From: Quvonchbek Bobojonov Date: Tue, 10 Dec 2024 12:25:22 +0500 Subject: [PATCH] bug fixed --- setup.py | 2 +- src/django_success_response.egg-info/PKG-INFO | 2 +- src/success_response/views.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 28ac08a..a8b70f4 100644 --- a/setup.py +++ b/setup.py @@ -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="hi@moorfo.uz", diff --git a/src/django_success_response.egg-info/PKG-INFO b/src/django_success_response.egg-info/PKG-INFO index 0e7b056..3b2fdc0 100644 --- a/src/django_success_response.egg-info/PKG-INFO +++ b/src/django_success_response.egg-info/PKG-INFO @@ -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 diff --git a/src/success_response/views.py b/src/success_response/views.py index e6612e1..bbaca90 100644 --- a/src/success_response/views.py +++ b/src/success_response/views.py @@ -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)