Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# [Django Rest Framework Docs](http://www.drfdocs.com/) [![travis][travis-image]][travis-url] [![codecov][codecov-image]][codecov-url] [![pypi][pypi-image]][pypi-url]
# [DRF Docs](http://www.drfdocs.com/) [![travis][travis-image]][travis-url] [![codecov][codecov-image]][codecov-url] [![pypi][pypi-image]][pypi-url]

Document Web APIs made with Django Rest Framework. [View Demo](http://demo.drfdocs.com/)

![DRFdocs](http://drfdocs.com/static/images/mockup.png)
![DRFdocs](https://cloud.githubusercontent.com/assets/6333409/12533070/99e4818a-c21c-11e5-80a3-07ff4f0c7841.png)

### Supports

Expand All @@ -16,6 +16,7 @@ Document Web APIs made with Django Rest Framework. [View Demo](http://demo.drfdo
- [Installation](http://drfdocs.com/docs/installation/)
- [Settings](http://drfdocs.com/docs/settings/)
- [Extending the template](http://drfdocs.com/docs/templates/)
- [Live API Endpoints](http://drfdocs.com/docs/live-api/)
- [Contributing & Development](http://drfdocs.com/docs/contributing/)
- [Changelog](http://drfdocs.com/docs/changelog/)

Expand Down
2 changes: 1 addition & 1 deletion rest_framework_docs/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.5'
__version__ = '0.0.6'
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var Response = React.createClass({
}

var responseJSON = JSONpp.prettyPrint(this.state.payload.body);
var hasToken = this.state.payload.body.hasOwnProperty('token');
var hasToken = this.state.payload.body ? this.state.payload.body.hasOwnProperty('token') : false;
var statusText = this.state.payload.statusText.toLowerCase();
var statusCodeFirstChar = String(this.state.payload.status).charAt(0);
var statusCodeClass = 'label status-code pull-right status-code-' + statusCodeFirstChar;
Expand Down

Large diffs are not rendered by default.