[1.8.x] Refs #25846 -- Added stacklevel to SubfieldBase warning.
Backport of 64200c14e0
from stable/1.9.x
This commit is contained in:
parent
c3e2e63ec8
commit
e73406d165
|
@ -19,7 +19,7 @@ class SubfieldBase(type):
|
|||
"""
|
||||
def __new__(cls, name, bases, attrs):
|
||||
warnings.warn("SubfieldBase has been deprecated. Use Field.from_db_value instead.",
|
||||
RemovedInDjango110Warning)
|
||||
RemovedInDjango110Warning, stacklevel=2)
|
||||
|
||||
new_class = super(SubfieldBase, cls).__new__(cls, name, bases, attrs)
|
||||
new_class.contribute_to_class = make_contrib(
|
||||
|
|
Loading…
Reference in New Issue