Skip to content

Commit a424543

Browse files
committed
Change views_api to views
1 parent af4dcc9 commit a424543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

units/django/11/rest-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ For this endpoint we'll add the following urn patten in our `urls.py` file:
126126
urlpatterns = [
127127
...
128128
url(r'^api/todos$', views.TodoListView.as_view(), name='api_todo_list'),
129-
url(r'^api/todos/(?P<pk>[0-9]+)$', views_api.TodoItemView.as_view(), name='api_todo_item')
129+
url(r'^api/todos/(?P<pk>[0-9]+)$', views.TodoItemView.as_view(), name='api_todo_item')
130130
]
131131
```
132132

0 commit comments

Comments
 (0)