Skip to content

Commit 9d24809

Browse files
committed
2 parents da6ef3d + c0fa92e commit 9d24809

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/api-guide/routers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,22 @@ For example, you can append `router.urls` to a list of existing views…
6060
router.register(r'accounts', AccountViewSet)
6161

6262
urlpatterns = [
63-
url(r'^forgot-password/$, ForgotPasswordFormView.as_view(),
63+
url(r'^forgot-password/$', ForgotPasswordFormView.as_view(),
6464
]
6565

6666
urlpatterns += router.urls
6767

6868
Alternatively you can use Django's `include` function, like so…
6969

7070
urlpatterns = [
71-
url(r'^forgot-password/$, ForgotPasswordFormView.as_view(),
71+
url(r'^forgot-password/$', ForgotPasswordFormView.as_view(),
7272
url(r'^', include(router.urls))
7373
]
7474

7575
Router URL patterns can also be namespaces.
7676

7777
urlpatterns = [
78-
url(r'^forgot-password/$, ForgotPasswordFormView.as_view(),
78+
url(r'^forgot-password/$', ForgotPasswordFormView.as_view(),
7979
url(r'^api/', include(router.urls, namespace='api'))
8080
]
8181

docs/tutorial/1-serialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Open the file `snippets/serializers.py` again, and replace the `SnippetSerialize
198198
model = Snippet
199199
fields = ('id', 'title', 'code', 'linenos', 'language', 'style')
200200

201-
One nice property that serializers have is that you can inspect all the fields in a serializer instance, by printing it's representation. Open the Django shell with `python manage.py shell`, then try the following:
201+
One nice property that serializers have is that you can inspect all the fields in a serializer instance, by printing its representation. Open the Django shell with `python manage.py shell`, then try the following:
202202

203203
>>> from snippets.serializers import SnippetSerializer
204204
>>> serializer = SnippetSerializer()

0 commit comments

Comments
 (0)