Skip to content

Docs templatetags AttributeError: 'NoneType' object has no attribute 'items' #5256

Closed
@ghost

Description

Checklist

  • [x ] I have verified that that issue exists against the 3.6.3 branch of Django REST framework.
  • [x ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • [x ] This is not a usage question. (Those should be directed to the discussion group instead.)
  • [x ] This cannot be dealt with as a third party library. (We prefer new functionality to be in the form of third party libraries where possible.)
  • [x ] I have reduced the issue to the simplest possible case.
  • [x ] I have included a failing test as a pull request. (If you are unable to do so we can still accept the issue.)

Steps to reproduce

  • Install version 3.6.3 from pip install djangorestframework==3.6.3
  • Put in URLConf include_docs_urls()
  • Runserver
  • Open browser in http://localhost:8000/docs/

Expected behavior

Render docs

Actual behavior

Exception rendered:

builtins.AttributeError

AttributeError: 'NoneType' object has no attribute 'items'

rest_framework/templatetags/rest_framework.py", line 244, in items

Requirements

coreapi==2.3.1
Django==1.11.3
django-filter==1.0.4
djangorestframework==3.6.3
drfdocs==0.0.11
Markdown==2.6.8
Pygments==2.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions