aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/5-relationships-and-hyperlinked-apis
diff options
context:
space:
mode:
authorTom Christie2014-12-11 09:55:10 +0000
committerTom Christie2014-12-11 09:55:10 +0000
commit5f0532a0919177e1157b02a40cffe816e6e1e57e (patch)
treef6b5644291419249db04b34e3e7facb67a84ee36 /tutorial/5-relationships-and-hyperlinked-apis
parentf21bf4d6dd7ed90b59945704f818732135ac86c4 (diff)
downloaddjango-rest-framework-5f0532a0919177e1157b02a40cffe816e6e1e57e.tar.bz2
Update documentation
Diffstat (limited to 'tutorial/5-relationships-and-hyperlinked-apis')
-rw-r--r--tutorial/5-relationships-and-hyperlinked-apis/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/tutorial/5-relationships-and-hyperlinked-apis/index.html b/tutorial/5-relationships-and-hyperlinked-apis/index.html
index 5742c884..51a66e92 100644
--- a/tutorial/5-relationships-and-hyperlinked-apis/index.html
+++ b/tutorial/5-relationships-and-hyperlinked-apis/index.html
@@ -457,7 +457,7 @@ We'll add a url pattern for our new API root in <code>snippets/urls.py</code>:</
class UserSerializer(serializers.HyperlinkedModelSerializer):
- snippets = serializers.HyperlinkedRelatedField(many=True, view_name='snippet-detail')
+ snippets = serializers.HyperlinkedRelatedField(many=True, view_name='snippet-detail', read_only=True)
class Meta:
model = User
@@ -537,6 +537,7 @@ urlpatterns += [
<script src="../../js/jquery-1.8.1-min.js"></script>
<script src="../../js/prettify-1.0.js"></script>
<script src="../../js/bootstrap-2.1.1-min.js"></script>
+ <script src="../../js/theme.js"></script>
<script>
//$('.side-nav').scrollspy()