diff options
| author | Tom Christie | 2013-12-13 01:02:04 -0800 |
|---|---|---|
| committer | Tom Christie | 2013-12-13 01:02:04 -0800 |
| commit | b07eb0bf0d3829fe07f0265f92cba39baf7a6390 (patch) | |
| tree | 3ee666fee6bd9d874244e6f759569340e793d1a2 /docs/api-guide | |
| parent | 9c0da462094118171c976526cfde657f4d94daca (diff) | |
| parent | 73e8536e0d38f6677ac30aa2b3ba80563961191f (diff) | |
| download | django-rest-framework-b07eb0bf0d3829fe07f0265f92cba39baf7a6390.tar.bz2 | |
Merge pull request #1289 from sheppard/wqdb-router
third-party package: wq.db
Diffstat (limited to 'docs/api-guide')
| -rw-r--r-- | docs/api-guide/routers.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/api-guide/routers.md b/docs/api-guide/routers.md index 8151e60f..ed903114 100644 --- a/docs/api-guide/routers.md +++ b/docs/api-guide/routers.md @@ -150,4 +150,18 @@ If you want to provide totally custom behavior, you can override `BaseRouter` an You may also want to override the `get_default_base_name(self, viewset)` method, or else always explicitly set the `base_name` argument when registering your viewsets with the router. +# Third party packages + +The following third party packages are also available. + +## wq.db + +[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. + + from wq.db.rest import app + from .models import MyModel + app.router.register_model(MyModel) + [cite]: http://guides.rubyonrails.org/routing.html +[wq.db]: http://wq.io/wq.db +[wq.db-router]: http://wq.io/docs/app.py |
