Remove most Django compat usage and code.

Review Request #11626 — Created May 26, 2021 and submitted — Latest diff uploaded

Information

Djblets
release-3.x

Reviewers

This gets rid of most of the djblets.util.compat.django code, and
updates all call sites to use the versions available in Django 1.11+.
Mostly, this is template-related code or management command code.

There are some changes in behavior for template code, functionality
differences around contexts that the old compat code papered over and
now needs manual changes. Mostly this involves calling
context.flatten() when calling render functions.

Unit tests pass on Django 1.11.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Remove most Django compat usage and code.
This gets rid of most of the `djblets.util.compat.django` code, and updates all call sites to use the versions available in Django 1.11+. Mostly, this is template-related code or management command code. There are some changes in behavior for template code, functionality differences around contexts that the old compat code papered over and now needs manual changes. Mostly this involves calling `context.flatten()` when calling render functions.
51090347f23948b2a0d852ae88f3b85f2015ee74 Christian Hammond
This diff has been split across 2 pages: 1 2 >
djblets/auth/views.py
djblets/auth/tests/test_views.py
djblets/avatars/services/base.py
djblets/configforms/forms.py
djblets/configforms/pages.py
djblets/datagrid/grids.py
djblets/extensions/hooks.py
djblets/extensions/manager.py
djblets/extensions/views.py
djblets/extensions/management/commands/install-extension-media.py
djblets/feedview/views.py
djblets/forms/widgets.py
djblets/log/views.py
djblets/privacy/consent/forms.py
djblets/registries/importer.py
djblets/siteconfig/views.py
djblets/siteconfig/management/commands/get-siteconfig.py
djblets/siteconfig/management/commands/set-siteconfig.py
djblets/util/compat/django/shortcuts.py
djblets/util/compat/django/core/validators.py
This diff has been split across 2 pages: 1 2 >
Loading...