Commit 209b65f4 by Tom Christie

Update assertion error to reference 'base_name' argument, not incorrect 'name'…

Update assertion error to reference 'base_name' argument, not incorrect 'name' argument. Closes #933
parent f2e6af89
...@@ -117,7 +117,7 @@ class SimpleRouter(BaseRouter): ...@@ -117,7 +117,7 @@ class SimpleRouter(BaseRouter):
if model_cls is None and queryset is not None: if model_cls is None and queryset is not None:
model_cls = queryset.model 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 ' \ 'not automatically determine the name from the viewset, as ' \
'it does not have a `.model` or `.queryset` attribute.' 'it does not have a `.model` or `.queryset` attribute.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment