Changes between Initial Version and Version 1 of Ticket #22266, comment 5
- Timestamp:
- May 16, 2014, 9:46:58 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22266, comment 5
initial v1 16 16 17 17 Quoting and unquoting doesn't change numerical PKs, that is why this problem haven't been noticed before. 18 By the way, there is a bug with quoting not being applied in add_view, but it can be easily fixed .18 By the way, there is a bug with quoting not being applied in add_view, but it can be easily fixed - that is why the first redirect doesn't work. 19 19 20 20 I suppose we are really lacking the documentation (https://docs.djangoproject.com/en/1.6/ref/contrib/admin/#overriding-vs-replacing-an-admin-template is evertyhing I could find). 21 21 22 There is no way to get rid of quoting if we leave (.+) url pattern for PK. So we can leave everything as is.23 We stillcan make this pattern configurable, e.g.:22 There is no way to get rid of quoting if we leave (.+) url pattern for PK. So we can leave quoting/unquoting as is and fix the redirect in add_view. 23 Or we can make this pattern configurable, e.g.: 24 24 {{{ 25 25 class ModelAdmin(BaseModelAdmin):