Opened 2 days ago
Closed 2 days ago
#35903 closed Cleanup/optimization (fixed)
"view on site" URL doesn't accept non-integer ContentType pks
Reported by: | Tim Graham | Owned by: | Tim Graham |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Most admin URL paths use the path
converter to allow any type of ID, however, the "view on site" uses the int
converter for content_type_id
.
This doesn't work on MongoDB which uses ObjectIdAutoField
(bson.ObjectId
) for all models since AutoField
isn't supported.
Change History (4)
comment:1 by , 2 days ago
Has patch: | set |
---|
comment:2 by , 2 days ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Version: | 5.0 → dev |
Thank you Tim for this report, I think your proposed solution makes sense and it's a good improvement.
comment:3 by , 2 days ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR