Skip to content

Commit 2d5f7f2

Browse files
Update router docs on base_name. Refs encode#933.
1 parent 209b65f commit 2d5f7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/routers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ There are two mandatory arguments to the `register()` method:
2626

2727
Optionally, you may also specify an additional argument:
2828

29-
* `base_name` - The base to use for the URL names that are created. If unset the basename will be automatically generated based on the `model` or `queryset` attribute on the viewset, if it has one.
29+
* `base_name` - The base to use for the URL names that are created. If unset the basename will be automatically generated based on the `model` or `queryset` attribute on the viewset, if it has one. Note that if the viewset does not include a `model` or `queryset` attribute then you must set `base_name` when registering the viewset.
3030

3131
The example above would generate the following URL patterns:
3232

0 commit comments

Comments
 (0)