... s displaying model fields and model attributes. While the former were correctly escaped, the latter were not. Thus untrusted content could be injected into the admin, presenting an exploi ... ... . For more information about both custom lookups and transforms refer to the custom lookups documentation. Improvements to Form error handling Form.add_error() Previously there were two main patterns for handling errors in forms: Raising a ValidationEr ... a specific field in Form.clean() or adding errors from outside of a "clean" method (e.g. directly from a view). Using the former pattern was straightforward since the form can guess from the context (i.e. which method raised the exception) where the e ... nged to: from django.core.wsgi import get_wsgi_application application = get_wsgi_application () If you're still using the former style in your WSGI script, you need to upgrade to the latter, or you will hit an AppRegistryNotReady exception. App regist ... ... ometryColumns changed in Django 1.2 have been removed. All GDAL-related exceptions are now raised with GDALException . The former OGRException has been kept for backwards compatibility but should not be used any longer. django.contrib.sessions Session ... emplate instance whose exact type depends on which backend loaded it. Both classes provide a render() method, however, the former takes a django.template.Context as an argument while the latter expects a dict . This change is enforced through a depreca ... ... app config's path (e.g. 'django.contrib.admin.apps.AdminConfig' ). It was introduced for backwards-compatibility with the former style, with the intent to switch the ecosystem to the latter, but the switch didn't happen. With automatic AppConfig disco ... 2026年10月08日