diff options
| author | Tom Christie | 2013-06-21 22:12:37 +0100 | 
|---|---|---|
| committer | Tom Christie | 2013-06-21 22:13:25 +0100 | 
| commit | 209b65f426e1935c970c95fad389ba5c03388592 (patch) | |
| tree | f5287435c39cf38ae120517a9e914481d600065e /rest_framework/routers.py | |
| parent | f2e6af89755c34083acb1a5fcd843a480037293f (diff) | |
| download | django-rest-framework-209b65f426e1935c970c95fad389ba5c03388592.tar.bz2 | |
Update assertion error to reference 'base_name' argument, not incorrect 'name' argument. Closes #933
Diffstat (limited to 'rest_framework/routers.py')
| -rw-r--r-- | rest_framework/routers.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/routers.py b/rest_framework/routers.py index f70c2cdb..2a26f6a7 100644 --- a/rest_framework/routers.py +++ b/rest_framework/routers.py @@ -117,7 +117,7 @@ class SimpleRouter(BaseRouter):          if model_cls is None and queryset is not None:              model_cls = queryset.model -        assert model_cls, '`name` not argument not specified, and could ' \ +        assert model_cls, '`base_name` argument not specified, and could ' \              'not automatically determine the name from the viewset, as ' \              'it does not have a `.model` or `.queryset` attribute.' | 
