Skip to content

Commit

Permalink
Merge pull request #1048 from benoit9126/master
Browse files Browse the repository at this point in the history
Delete a warning with Python 3.12
  • Loading branch information
sehmaschine committed Mar 13, 2024
2 parents ef0f5a4 + 939fd4f commit 8a794f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grappelli/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# SWITCH_USER_ORIGINAL: Defines if a user is a valid target.
# Gets a user object and returns True/False.
SWITCH_USER_TARGET = getattr(settings, "GRAPPELLI_SWITCH_USER_TARGET", lambda original_user, user: user.is_staff and not user.is_superuser)
SWITCH_USER_REGEX = getattr(settings, "GRAPPELLI_SWITCH_USER_REGEX", "\d+")
SWITCH_USER_REGEX = getattr(settings, "GRAPPELLI_SWITCH_USER_REGEX", r"\d+")

# CLEAN INPUT TYPES
# Replaces input types: search, email, url, tel, number, range, date
Expand Down

0 comments on commit 8a794f7

Please # to comment.