-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Describe the bug
Incorrect decoding of primary key with _ in value from url
Field example:
code = models.CharField(
primary_key=True,
)
To Reproduce
Steps to reproduce the behavior:
- Go to 'Django admin list' with CharField field
- Click on element with _ in primary_key
- Change any value in model
- Try to save
- Get correct confirmation page and try to save
- See error Market with ID “test_5Fmarket“ does not exist. Maybe it was deleted?
Expected behavior
Confirmation page correctly handles escaped characters from url
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
- Browser: chrome
- Version: 138.0.7204.94
- django-admin-confirm = "==1.0.1"
- django = "==5.0.4"
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels