django-admin-interface/tests
Julian Wachholz b393c11ecb
Simplify language chooser (#328)
* Simplify language chooser

- Allows usage of i18n_patterns with prefix_default_language=False
- Change templatetag from simple tag to an inclusion tag
- Reduces complexity by relying on Django's behavior in the
  set_language view: it will translate any url passed as 'next'.
  This behavior has been present since Django 1.9.
- Remove individual forms for each language

Fixes #327

Reference: aa5ab114e3

* Add check to ensure LocaleMiddleware

* Remove check in favor of silent warning

* Fix template tag tests
2023-12-05 12:18:44 +01:00
..
__init__.py Added tests 2017-03-29 16:21:41 +02:00
routers.py Add `pyupgrade` to `pre-commit` config. 2022-12-31 18:53:01 +01:00
settings.py Simplify language chooser (#328) 2023-12-05 12:18:44 +01:00
test_fixtures.py Upgrade syntax for `Python >= 3.8`. 2023-02-10 16:21:36 +01:00
test_metadata.py Add `metadata` module and read package attrs dynamically. 2023-02-09 19:14:33 +01:00
test_models.py Add `flake8-bugbear` to `pre-commit`. 2023-03-01 17:54:58 +01:00
test_multidb.py Fix multidb tests. 2023-03-02 14:09:38 +01:00
test_settings.py Update `pre-commit`. 2023-02-06 10:35:32 +01:00
test_templatetags.py Simplify language chooser (#328) 2023-12-05 12:18:44 +01:00
urls.py Drop old Python and Django versions (#220) 2022-12-03 13:49:09 +01:00
urls_without_i18n_patterns.py Drop old Python and Django versions (#220) 2022-12-03 13:49:09 +01:00