Changes between Initial Version and Version 1 of Ticket #22266, comment 5


Ignore:
Timestamp:
May 16, 2014, 9:46:58 AM (10 years ago)
Author:
nott

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22266, comment 5

    initial v1  
    1616
    1717Quoting 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.
     18By 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.
    1919
    2020I 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).
    2121
    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 still can make this pattern configurable, e.g.:
     22There 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.
     23Or we can make this pattern configurable, e.g.:
    2424{{{
    2525class ModelAdmin(BaseModelAdmin):
Back to Top