aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/1-serialization/index.html1
-rw-r--r--tutorial/2-requests-and-responses/index.html1
-rw-r--r--tutorial/3-class-based-views/index.html1
-rw-r--r--tutorial/4-authentication-and-permissions/index.html1
-rw-r--r--tutorial/5-relationships-and-hyperlinked-apis/index.html5
-rw-r--r--tutorial/6-viewsets-and-routers/index.html1
-rw-r--r--tutorial/quickstart/index.html1
7 files changed, 2 insertions, 9 deletions
diff --git a/tutorial/1-serialization/index.html b/tutorial/1-serialization/index.html
index 435d47e6..7d2d3a4d 100644
--- a/tutorial/1-serialization/index.html
+++ b/tutorial/1-serialization/index.html
@@ -747,7 +747,6 @@ HTTP/1.1 200 OK
<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()
diff --git a/tutorial/2-requests-and-responses/index.html b/tutorial/2-requests-and-responses/index.html
index 9fa4b092..d7048cac 100644
--- a/tutorial/2-requests-and-responses/index.html
+++ b/tutorial/2-requests-and-responses/index.html
@@ -583,7 +583,6 @@ http --json POST http://127.0.0.1:8000/snippets/ code="print 456"
<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()
diff --git a/tutorial/3-class-based-views/index.html b/tutorial/3-class-based-views/index.html
index cf7be3ae..eac633aa 100644
--- a/tutorial/3-class-based-views/index.html
+++ b/tutorial/3-class-based-views/index.html
@@ -527,7 +527,6 @@ class SnippetDetail(generics.RetrieveUpdateDestroyAPIView):
<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()
diff --git a/tutorial/4-authentication-and-permissions/index.html b/tutorial/4-authentication-and-permissions/index.html
index 7585afff..07900eaa 100644
--- a/tutorial/4-authentication-and-permissions/index.html
+++ b/tutorial/4-authentication-and-permissions/index.html
@@ -594,7 +594,6 @@ class IsOwnerOrReadOnly(permissions.BasePermission):
<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()
diff --git a/tutorial/5-relationships-and-hyperlinked-apis/index.html b/tutorial/5-relationships-and-hyperlinked-apis/index.html
index 52ecf307..5742c884 100644
--- a/tutorial/5-relationships-and-hyperlinked-apis/index.html
+++ b/tutorial/5-relationships-and-hyperlinked-apis/index.html
@@ -447,7 +447,7 @@ We'll add a url pattern for our new API root in <code>snippets/urls.py</code>:</
</ul>
<p>We can easily re-write our existing serializers to use hyperlinking. In your <code>snippets/serializers.py</code> add:</p>
<pre><code>class SnippetSerializer(serializers.HyperlinkedModelSerializer):
- owner = serializers.Field(source='owner.username')
+ owner = serializers.ReadOnlyField(source='owner.username')
highlight = serializers.HyperlinkedIdentityField(view_name='snippet-highlight', format='html')
class Meta:
@@ -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', read_only=True)
+ snippets = serializers.HyperlinkedRelatedField(many=True, view_name='snippet-detail')
class Meta:
model = User
@@ -537,7 +537,6 @@ 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()
diff --git a/tutorial/6-viewsets-and-routers/index.html b/tutorial/6-viewsets-and-routers/index.html
index 04071f9e..39d53591 100644
--- a/tutorial/6-viewsets-and-routers/index.html
+++ b/tutorial/6-viewsets-and-routers/index.html
@@ -527,7 +527,6 @@ 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()
diff --git a/tutorial/quickstart/index.html b/tutorial/quickstart/index.html
index 64243dc0..204942b0 100644
--- a/tutorial/quickstart/index.html
+++ b/tutorial/quickstart/index.html
@@ -573,7 +573,6 @@ HTTP/1.1 200 OK
<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()