Changes between Initial Version and Version 1 of Ticket #29296
- Timestamp:
- Apr 6, 2018, 8:33:59 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29296 – Description
initial v1 3 3 The problem is that Feed is a callable object (https://github.com/django/django/blob/master/django/contrib/syndication/views.py#L34) and the documentation uses that class directly as a View (`path('latest/feed/', LatestEntriesFeed()),`), but admindocs assumes that all views are functions and it does not work properly with a callable object (https://github.com/django/django/blob/master/django/contrib/admindocs/views.py#L130). 4 4 5 In Django 1.11 and earlier, admindocs supported callable objects on Python 2 by falling back to `view.__class__.__name__`, but it appears that the Python 3 code in admindocs has n ever supported this. (https://github.com/django/django/blob/1.11.12/django/contrib/admindocs/views.py#L135)5 In Django 1.11 and earlier, admindocs supported callable objects on Python 2 by falling back to `view.__class__.__name__`, but it appears that the Python 3 code in admindocs has not supported this since it was added in https://github.com/django/django/commit/ae0f55eb491255217d6df31296ec8102007224a6 (https://code.djangoproject.com/ticket/27018). 6 6 7 7 As a work-around, `__qualname__` can be manually defined on Feed objects: