Update deprecated code for datagrid state and Django Evolution settings.

Review Request #12323 — Created June 1, 2022 and submitted

Information

Review Board
release-5.0.x

Reviewers

This addresses some deprecation warnings in both our datagrid code and
in Django Evolution.

The load_extra_state() methods in datagrids now return lists of
modified fields, instead of booleans. This is used for more selective
profile saving, and was introduced in Djblets 3.

Django Evolution 2.2 introduced a new top-level DJANGO_EVOLUTION
setting, which nests other settings. We now use this instead of a
top-level CUSTOM_EVOLUTIONS setting.

Verified these deprecation warnings went away.

Tested that the settings saved in the datagrids used in
load_extra_state() ("Show Closed" and "Show Archived") were both
properly preserved and loaded.

Summary ID
Update deprecated code for datagrid state and Django Evolution settings.
This addresses some deprecation warnings in both our datagrid code and in Django Evolution. The `load_extra_state()` methods in datagrids now return lists of modified fields, instead of booleans. This is used for more selective profile saving, and was introduced in Djblets 3. Django Evolution 2.2 introduced a new top-level `DJANGO_EVOLUTION` setting, which nests other settings. We now use this instead of a top-level `CUSTOM_EVOLUTIONS` setting.
86b1972f6fa8428b35f50cdcf20ea8a037d3a151
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.0.x (74f271a)