bhch / django-jsonform

A better, user-friendly JSON editing form field for Django admin. Also supports Postgres ArrayField.
https://django-jsonform.rtfd.io
BSD 3-Clause "New" or "Revised" License
307 stars 31 forks source link

Added missing import, initialized missing variable #132

Closed nlsfnr closed 5 months ago

nlsfnr commented 6 months ago

The exceptions module was used but not imported.

The next_validator variable was not initialized in a certain code path, resulting in UnboundLocalErrors.

This PR fixes both.

P.s. I noticed my editor removed some trailing whitespace, I can undo that if you like.

bhch commented 5 months ago

Hi. Thanks for this PR.

This has been released in v2.21.3. Please update and test it out.