v0.24.0.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. v0.24.0 release notes
  2. =====================
  3. This release is focused primarily on resolving internal tech debt. This
  4. translates to improved reliability and improved developer experience.
  5. Upgrade considerations
  6. ----------------------
  7. * Template tag ``codered_settings`` has been renamed ``crx_settings``. You
  8. should find/replace this in any of your HTML or other Django template files.
  9. * Django settings beginning with ``CODERED_*`` have been renamed to ``CRX_*``.
  10. You should find/replace these in your Django settings files.
  11. * ``wagtail-import-export`` has been removed as a dependency. You should remove
  12. this from ``INSTALLED_APPS`` in your Django settings. As a result,
  13. import/export from JSON files has been removed. However we have preserved the
  14. ability to import Pages from CSV files. See :doc:`/features/import_export`.
  15. Internal changes
  16. ----------------
  17. The following changes are not publicly documented APIs, but have changed. Most
  18. sites should not be using any of these APIs and therefore can ignore this
  19. section. In case your site deeply hooks into the package, these are here for
  20. reference.
  21. * ``coderedcms.settings.cr_settings`` has been replaced with
  22. ``coderedcms.settings.crx_settings`` which is no longer a dictionary, but an
  23. object which behaves exactly like the Django settings. This object will first
  24. retrieve a Django setting, and if it does not exist, will then load a CRX
  25. default.
  26. * Internal uses of Wagtail ``StreamField`` on concrete models have been replaced
  27. with ``CoderedStreamField`` which will not generate migrations based on block
  28. changes. This effectively eliminites most of our historic migration problems.
  29. As a result, all past migrations have been hand-edited to reflect this change.
  30. No action is required in client sites.
  31. Client sites can freely use ``coderedcms.fields.CoderedStreamField`` in place
  32. of Wagtail's ``StreamField`` to eliminate the giant migrations problem
  33. inherent to Wagtail. However this API is not publicly documented at this time.
  34. * Choice fields on internal concrete models have been replaced with a
  35. lazy-loading mechanism to load choices and defaults at runtime. This further
  36. eliminates historic migration problems.