Changes between Initial Version and Version 1 of Ticket #27757, comment 6
- Timestamp:
- Jan 24, 2017, 10:47:48 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27757, comment 6
initial v1 1 1 I apologize for this mistake. 2 2 3 However, in the [https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.view_on_site relevant django docs] reverse url returns a string which begins with 'https://'. Correcting my get_absolute_url(), to return a string which begins either with 'https://' or with a slash ('/xxx') the view on site link will just return its standard `/admin/r/62/1/`.3 However, in the [https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.view_on_site relevant django docs] reverse url returns a string which begins with 'https://'. Correcting my `get_absolute_url()`, to return a string which begins either with 'https://' or with a slash (`'/xxx'`) the view on site link will just return its standard `/admin/r/62/1/`. 4 4 5 5 On the other hand when I use an external admin app like django-suit, while the main link works as expected (it receives the `get_absolute_url()` value), the inline link -if it appears- (I cannot figure out under which circumstances it will appear) it redirects to the wrong `/admin/r/62/1/`.