Skip to content

Commit

Permalink
Delete a warning with Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit9126 committed Feb 5, 2024
1 parent ef0f5a4 commit 939fd4f
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 939fd4f

Please # to comment.