django-grappelli icon indicating copy to clipboard operation
django-grappelli copied to clipboard

Delete a warning with Python 3.12

Open benoit9126 opened this issue 1 year ago • 0 comments

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.

benoit9126 avatar Feb 05 '24 12:02 benoit9126