Changes between Initial Version and Version 1 of Ticket #27757, comment 6


Ignore:
Timestamp:
Jan 24, 2017, 10:47:48 AM (8 years ago)
Author:
George Tantiras

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27757, comment 6

    initial v1  
    11I apologize for this mistake.
    22
    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/`.
     3However, 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/`.
    44
    55On 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/`.
Back to Top