mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-26 16:09:49 +03:00
Update docs/tutorial/6-viewsets-and-routers.md
This commit is contained in:
parent
d82bbe6501
commit
f329d9e1a6
|
@ -6,7 +6,7 @@ REST framework includes an abstraction for dealing with `ViewSets`, that allows
|
||||||
|
|
||||||
A `ViewSet` class is only bound to a set of method handlers at the last moment, when it is instantiated into a set of views, typically by using a `Router` class which handles the complexities of defining the URL conf for you.
|
A `ViewSet` class is only bound to a set of method handlers at the last moment, when it is instantiated into a set of views, typically by using a `Router` class which handles the complexities of defining the URL conf for you.
|
||||||
|
|
||||||
## Refactoring to use view sets
|
## Refactoring to use ViewSets
|
||||||
|
|
||||||
Let's take our current set of views, and refactor them into view sets.
|
Let's take our current set of views, and refactor them into view sets.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user