mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-26 08:20:46 +03:00
Fix typo on warning message.
This commit is contained in:
parent
a336681012
commit
314c08bfa1
|
@ -510,7 +510,7 @@ class ModelMixin(object):
|
||||||
import warnings
|
import warnings
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"``get_instance(**kwargs)`` method is deprecated. "
|
"``get_instance(**kwargs)`` method is deprecated. "
|
||||||
"use ``get_object(queryset=None)`` insted.",
|
"use ``get_object(queryset=None)`` instead.",
|
||||||
DeprecationWarning
|
DeprecationWarning
|
||||||
)
|
)
|
||||||
return self.get_queryset().get(**kwargs)
|
return self.get_queryset().get(**kwargs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user