Skip to content

Conversation

@carltongibson
Copy link
Collaborator

Closes #5395.

If your coreapi.Document contains a Link called data then calls to document.data in the templates would fail.

This PR adds a test case for that and a template tag to resolve the issue. (Note, it's the same fix as #4972)

@carltongibson
Copy link
Collaborator Author

ERROR: /home/travis/build/encode/django-rest-framework/tests/test_renderers.py Imports are incorrectly sorted.
isort failed: Some modules have incorrectly ordered imports. Fix by running `isort --recursive .`
ERROR: InvocationError: '/home/travis/build/encode/django-rest-framework/runtests.py --lintonly'

Running isort tests/test_renderers.py has no effect here. I need lunch. 😀

@carltongibson carltongibson force-pushed the 37/5395-fix-document-data-rendering branch from 6f547bd to 4dd0a58 Compare October 2, 2017 11:00
@carltongibson
Copy link
Collaborator Author

Right, some chicken pie and a sandwich later...

@carltongibson carltongibson merged commit dc4a98f into encode:master Oct 2, 2017
@carltongibson carltongibson deleted the 37/5395-fix-document-data-rendering branch October 2, 2017 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs crash when a viewset is called data

1 participant