Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - Object of type ValidationError is not JSON serializable #1368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Spawin
Copy link

@Spawin Spawin commented Jul 12, 2024

On Creation of new choices in the autocomplete form, when we use validate_create=True and the validation failed we have TypeError: Object of type ValidationError is not JSON serializable.

Corrections made :

  • fix the TypeError
  • return of the error of the concerned field to the view

Versions used:

  • django==5.0.7
  • django-autocomplete-light==3.11.0

@Spawin
Copy link
Author

Spawin commented Aug 27, 2024

Please i need review here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant