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

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

Spawin
Copy link
Contributor

@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
Contributor Author

Spawin commented Aug 27, 2024

Please i need review here

@jpic jpic merged commit 0259c79 into yourlabs:master Jan 28, 2025
1 check passed
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.

2 participants