mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-13 05:06:53 +03:00
Links to drf-nested-routers
This commit is contained in:
parent
193af483ef
commit
39dbea4da4
|
@ -442,7 +442,18 @@ In the 2.4 release, these parts of the API will be removed entirely.
|
||||||
|
|
||||||
For more details see the [2.2 release announcement][2.2-announcement].
|
For more details see the [2.2 release announcement][2.2-announcement].
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Third Party Packages
|
||||||
|
|
||||||
|
The following third party packages are also available.
|
||||||
|
|
||||||
|
## DRF Nested Routers
|
||||||
|
|
||||||
|
The [drf-nested-routers package][drf-nested-routers] provides routers and relationship fields for working with nested resources.
|
||||||
|
|
||||||
[cite]: http://lwn.net/Articles/193245/
|
[cite]: http://lwn.net/Articles/193245/
|
||||||
[reverse-relationships]: https://docs.djangoproject.com/en/dev/topics/db/queries/#following-relationships-backward
|
[reverse-relationships]: https://docs.djangoproject.com/en/dev/topics/db/queries/#following-relationships-backward
|
||||||
[generic-relations]: https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1
|
[generic-relations]: https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1
|
||||||
[2.2-announcement]: ../topics/2.2-announcement.md
|
[2.2-announcement]: ../topics/2.2-announcement.md
|
||||||
|
[drf-nested-routers]: https://github.com/alanjds/drf-nested-routers
|
||||||
|
|
|
@ -158,9 +158,6 @@ The following third party packages are also available.
|
||||||
|
|
||||||
The [drf-nested-routers package][drf-nested-routers] provides routers and relationship fields for working with nested resources.
|
The [drf-nested-routers package][drf-nested-routers] provides routers and relationship fields for working with nested resources.
|
||||||
|
|
||||||
[cite]: http://guides.rubyonrails.org/routing.html
|
|
||||||
[drf-nested-routers]: https://github.com/alanjds/drf-nested-routers
|
|
||||||
|
|
||||||
## wq.db
|
## wq.db
|
||||||
|
|
||||||
The [wq.db package][wq.db] provides an advanced [Router][wq.db-router] class (and singleton instance) that extends `DefaultRouter` with a `register_model()` API. Much like Django's `admin.site.register`, the only required argument to `app.router.register_model` is a model class. Reasonable defaults for a url prefix and viewset will be inferred from the model and global configuration.
|
The [wq.db package][wq.db] provides an advanced [Router][wq.db-router] class (and singleton instance) that extends `DefaultRouter` with a `register_model()` API. Much like Django's `admin.site.register`, the only required argument to `app.router.register_model` is a model class. Reasonable defaults for a url prefix and viewset will be inferred from the model and global configuration.
|
||||||
|
@ -171,5 +168,6 @@ The [wq.db package][wq.db] provides an advanced [Router][wq.db-router] class (an
|
||||||
app.router.register_model(MyModel)
|
app.router.register_model(MyModel)
|
||||||
|
|
||||||
[cite]: http://guides.rubyonrails.org/routing.html
|
[cite]: http://guides.rubyonrails.org/routing.html
|
||||||
|
[drf-nested-routers]: https://github.com/alanjds/drf-nested-routers
|
||||||
[wq.db]: http://wq.io/wq.db
|
[wq.db]: http://wq.io/wq.db
|
||||||
[wq.db-router]: http://wq.io/docs/app.py
|
[wq.db-router]: http://wq.io/docs/app.py
|
||||||
|
|
Loading…
Reference in New Issue
Block a user