Re: Features deprecated in 4.1 / Log out via GET

2022-07-19 Thread אורי
Hi Adam, Just for the record, if anyone is seeing this thread - what works for me is running tests with "python -W error" (and not "python -W all") so that all the warnings are converted to exceptions - then the tests fail. If I run them with "python -W all" I can see the warnings but the tests pa

Re: Features deprecated in 4.1 / Log out via GET

2022-05-19 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Great. There's some more information on warnings in the docs here: https://docs.djangoproject.com/en/4.0/howto/upgrade-version/#resolving-deprecation-warnings . ‪On Thu, May 19, 2022 at 9:38 PM ‫אורי‬‎ wrote:‬ > Hi Adam, > > I understand, and with `python -W all` I can see this warning (it was w

Re: Features deprecated in 4.1 / Log out via GET

2022-05-19 Thread אורי
Hi Adam, I understand, and with `python -W all` I can see this warning (it was with `python -W error::DeprecationWarning` that I didn't see the warning). Thanks, Uri. אורי u...@speedy.net On Thu, May 19, 2022 at 10:52 PM 'Adam Johnson' via Django developers (Contributions to Django itself) wro

Re: Features deprecated in 4.1 / Log out via GET

2022-05-19 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Uri, The view raises a RemovedInDjango50Warning, which on Django 4.1 inherits from PendingDeprecationWarning: https://github.com/django/django/blob/ac6410ec071f53893914c82e820a2320866681df/django/utils/deprecation.py#L12 You'll need to run with "python -W all" or similar to see it (consider de

Features deprecated in 4.1 / Log out via GET

2022-05-19 Thread אורי
Hi, I installed Django 4.1 alpha and ran the tests with deprecation warnings enabled, but I didn't get any deprecation warnings for logging out with get. I have this test: def test_user_can_logout(self): r = self.client.get(path='/logout/') self.assertE