Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Django 5.0 #236

Merged
merged 3 commits into from
Dec 12, 2023
Merged

Conversation

lzaoral
Copy link
Contributor

@lzaoral lzaoral commented Dec 5, 2023

No description provided.

.. to fix the following deprecation warning:
```
tests/test_views.py::TestAuthView::test_logout
  kobo/.tox/py312-django4/lib/python3.12/site-packages/django/contrib/auth/views.py:142: RemovedInDjango50Warning: Log out via GET requests is deprecated and will be removed in Django 5.0. Use POST requests for logging out.
```

Django documentation recommends to use a appropriately styled form as
the replacement.

Related: https://docs.djangoproject.com/en/dev/releases/4.1/#log-out-via-get
Fixes the following traceback:
```
Traceback:
/opt/homebrew/Cellar/[email protected]/3.12.0/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_xmlrpc_auth.py:8: in <module>
    from kobo.hub.models import Worker
kobo/hub/models.py:30: in <module>
    import kobo.django.fields
kobo/django/fields.py:9: in <module>
    from django.forms.fields import CallableChoiceIterator
E   ImportError: cannot import name 'CallableChoiceIterator' from 'django.forms.fields'
```
@lzaoral lzaoral marked this pull request as ready for review December 7, 2023 14:43
@rohanpm rohanpm merged commit 308ea96 into release-engineering:master Dec 12, 2023
19 checks passed
@lzaoral lzaoral deleted the add-django-5 branch December 12, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants