Skip to content
New issue

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

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

Already on GitHub? # to your account

Delete a warning with Python 3.12 #1048

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

benoit9126
Copy link
Contributor

With Python 3.12, a warning is emitted from the settings.py file.

grappelli/settings.py:27: SyntaxWarning: invalid escape sequence '\d'
  SWITCH_USER_REGEX = getattr(settings, "GRAPPELLI_SWITCH_USER_REGEX", "\d+")

A simple raw string solves it.

@sehmaschine sehmaschine merged commit 8a794f7 into sehmaschine:master Mar 13, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants