mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-26 00:10:44 +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
|
||||
warnings.warn(
|
||||
"``get_instance(**kwargs)`` method is deprecated. "
|
||||
"use ``get_object(queryset=None)`` insted.",
|
||||
"use ``get_object(queryset=None)`` instead.",
|
||||
DeprecationWarning
|
||||
)
|
||||
return self.get_queryset().get(**kwargs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user