yourlabs / django-autocomplete-light

A fresh approach to autocomplete implementations, specially for Django. Status: v4 alpha, v3 stable, v2 & v1 deprecated.
https://django-autocomplete-light.readthedocs.io
MIT License
1.79k stars 466 forks source link

Fix more string escape warnings #1343

Closed adamchainz closed 6 months ago

adamchainz commented 8 months ago

Fix some warnings in the vein of #1326:

test_project/select2_generic_foreign_key/test_forms.py::GenericFormTest::test_initial
  /.../test_project/select2_generic_foreign_key/urls.py:13: SyntaxWarning: invalid escape sequence '\d'
    'test/(?P<pk>\d+)/$',

test_project/select2_generic_foreign_key/test_forms.py::GenericFormTest::test_initial
  /.../test_project/select2_many_to_many/urls.py:20: SyntaxWarning: invalid escape sequence '\d'
    'test/(?P<pk>\d+)/$',

The warning is SyntaxWarning from Python 3.12 onwards, with the aim to remove support soon.