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

Resolve django 5 deprecations #395

Open
jelly opened this issue Jan 9, 2022 · 2 comments
Open

Resolve django 5 deprecations #395

jelly opened this issue Jan 9, 2022 · 2 comments

Comments

@jelly
Copy link
Member

jelly commented Jan 9, 2022

../../../../../opt/hostedtoolcache/Python/3.9.9/x64/lib/python3.9/site-packages/django/conf/__init__.py:222
  /opt/hostedtoolcache/Python/3.9.9/x64/lib/python3.9/site-packages/django/conf/__init__.py:222: RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with Django 5.0, localized formatting of data will always be enabled. For example Django will display numbers and dates using the format of the current locale.
    warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)

mirrors/tests/test_mirrorlist.py::MirrorListTest::test_mirrorlist
  /home/runner/work/archweb/archweb/mirrors/views/mirrorlist.py:45: RemovedInDjango50Warning: django.forms.BaseForm._html_output() is deprecated. Please use .render() and .get_context() instead.
    return self._html_output(

packages/tests/test_views.py::test_sitemap
  /opt/hostedtoolcache/Python/3.9.9/x64/lib/python3.9/site-packages/django/contrib/sitemaps/__init__.py:117: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'main.models.Package'> QuerySet.
    return paginator.Paginator(self._items(), self.limit)
@f09f909b
Copy link
Contributor

f09f909b commented Feb 2, 2022

I can take a try at this.

@jelly
Copy link
Member Author

jelly commented Feb 2, 2022

Sure go ahead!

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

No branches or pull requests

2 participants