Skip to content

Conversation

@renatoalmeidaoliveira
Copy link
Contributor

Fixes: #18557 Editing a Custom Field with Default Value does not pre-populate form with correct value

  • JSONField from utilities.forms.fields writes strings as is, intead of enclosed by "
  • Change the behaviour of prepare_value to add the extra "

This issue also affects other fields like:

EventRule's Action data field

Doesn't find any other field that uses JSONField and stop working after the fix.

@renatoalmeidaoliveira renatoalmeidaoliveira requested review from a team and arthanson and removed request for a team March 8, 2025 15:52
@arthanson arthanson merged commit 749a83d into netbox-community:main Mar 12, 2025
3 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editing a Custom Field with Default Value does not pre-populate form with correct value

2 participants