Changes between Version 1 and Version 2 of Ticket #27757, comment 6
- Timestamp:
- Jan 24, 2017, 11:03:09 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27757, comment 6
v1 v2 3 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 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/`.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/`. 6 6 7 7 I will verify all the above in my main project where I use `reverse` in `get_absolute_url()`.