Changes between Initial Version and Version 3 of Ticket #27409


Ignore:
Timestamp:
Jan 23, 2023, 10:51:29 PM (16 months ago)
Author:
Mariusz Felisiak
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27409

    • Property Triage Stage UnreviewedAccepted
    • Property Summary Django Admindocs links generationIssues with admindocs docstring links generation
  • Ticket #27409 – Description

    initial v3  
    66Let's say you want to generate link to tag "safe", then you have to use {{{:tag:`built_in-safe`}}} and it will generate link like "built_in-safe", whereas it may be better, if link text would be only the tag name or "safe". Same case with filters.
    77
    8 For views you can use generic class based views, in there by naming conventions can be capital letters. Class based views are classes and not methods and the naming of the view can be like BlogView or BlogEdit. But if generating link using the directives according to documentation it will not work since it will try to find view by name of "blogview" instead of "BlogView". It will automatically put it to lowercase and may make it not working.
     8~~For views you can use generic class based views, in there by naming conventions can be capital letters. Class based views are classes and not methods and the naming of the view can be like BlogView or BlogEdit. But if generating link using the directives according to documentation it will not work since it will try to find view by name of "blogview" instead of "BlogView". It will automatically put it to lowercase and may make it not working. ~~ (Moved to the separate ticket, see #34286).
    99
    1010Also after some experimenting, it seems like {{{:view:`app_label.view_name`}}} would not work, and have to use full path like: {{{:view:`app_name.app_label.views.view_name`}}}
Back to Top