mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Update assertion error to reference 'base_name' argument, not incorrect 'name' argument. Closes #933
This commit is contained in:
parent
f2e6af8975
commit
209b65f426
|
@ -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.'
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user