File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
static/rest_framework_docs/js Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- # [ Django Rest Framework Docs] ( http://www.drfdocs.com/ ) [ ![ travis] [ travis-image ]] [ travis-url ] [ ![ codecov] [ codecov-image ]] [ codecov-url ] [ ![ pypi] [ pypi-image ]] [ pypi-url ]
1+ # [ DRF Docs] ( http://www.drfdocs.com/ ) [ ![ travis] [ travis-image ]] [ travis-url ] [ ![ codecov] [ codecov-image ]] [ codecov-url ] [ ![ pypi] [ pypi-image ]] [ pypi-url ]
22
33Document Web APIs made with Django Rest Framework. [ View Demo] ( http://demo.drfdocs.com/ )
44
5- ![ DRFdocs] ( http ://drfdocs. com/static/images/mockup .png)
5+ ![ DRFdocs] ( https ://cloud.githubusercontent. com/assets/6333409/12533070/99e4818a-c21c-11e5-80a3-07ff4f0c7841 .png)
66
77### Supports
88
@@ -16,6 +16,7 @@ Document Web APIs made with Django Rest Framework. [View Demo](http://demo.drfdo
1616 - [ Installation] ( http://drfdocs.com/docs/installation/ )
1717 - [ Settings] ( http://drfdocs.com/docs/settings/ )
1818 - [ Extending the template] ( http://drfdocs.com/docs/templates/ )
19+ - [ Live API Endpoints] ( http://drfdocs.com/docs/live-api/ )
1920 - [ Contributing & Development] ( http://drfdocs.com/docs/contributing/ )
2021 - [ Changelog] ( http://drfdocs.com/docs/changelog/ )
2122
Original file line number Diff line number Diff line change 1- __version__ = '0.0.5 '
1+ __version__ = '0.0.6 '
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ var Response = React.createClass({
3131 }
3232
3333 var responseJSON = JSONpp . prettyPrint ( this . state . payload . body ) ;
34- var hasToken = this . state . payload . body . hasOwnProperty ( 'token' ) ;
34+ var hasToken = this . state . payload . body ? this . state . payload . body . hasOwnProperty ( 'token' ) : false ;
3535 var statusText = this . state . payload . statusText . toLowerCase ( ) ;
3636 var statusCodeFirstChar = String ( this . state . payload . status ) . charAt ( 0 ) ;
3737 var statusCodeClass = 'label status-code pull-right status-code-' + statusCodeFirstChar ;
You can’t perform that action at this time.
0 commit comments