You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a notes field in ProductRelease which automatically converts the JSON in the DB column to a list of Python objects.
This is convenient in many situations, but when we're exporting a database (as we'll need to do for the Wagtail work) this automatic hydration of objects cauases loaddata to blow up.
We can refactor to make the field un-clever and instead of calling somerelease.notes we instead call somerelease.get_notes and move the behaviour into that method.
Success Criteria
Release notes pages are 100% unaffected, and show all their relevant notes
There's no automatic behaviour on the notes field
The text was updated successfully, but these errors were encountered:
Description
We have a
notes
field inProductRelease
which automatically converts the JSON in the DB column to a list of Python objects.This is convenient in many situations, but when we're exporting a database (as we'll need to do for the Wagtail work) this automatic hydration of objects cauases
loaddata
to blow up.We can refactor to make the field un-clever and instead of calling
somerelease.notes
we instead callsomerelease.get_notes
and move the behaviour into that method.Success Criteria
notes
fieldThe text was updated successfully, but these errors were encountered: