From 13ce8f4fbc0242f41fd55937fce7c71355aeca21 Mon Sep 17 00:00:00 2001 From: Lars van de Kerkhof Date: Mon, 9 Oct 2023 16:29:31 +0200 Subject: [PATCH] Renamed warning --- oscarapi/serializers/fields.py | 4 ++-- oscarapi/utils/deprecations.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oscarapi/serializers/fields.py b/oscarapi/serializers/fields.py index 09a5180c..e5c9cce1 100644 --- a/oscarapi/serializers/fields.py +++ b/oscarapi/serializers/fields.py @@ -16,7 +16,7 @@ from rest_framework.fields import get_attribute from oscar.core.loading import get_model, get_class -from oscarapi.utils.deprecations import RemovedInOScarAPI4 +from oscarapi.utils.deprecations import RemovedInFutureRelease from oscarapi import settings from oscarapi.utils.attributes import AttributeFieldBase, attribute_details @@ -107,7 +107,7 @@ class AttributeValueField(AttributeFieldBase, serializers.Field): def __init__(self, **kwargs): warnings.warn( "AttributeValueField is deprecated and will be removed in a future version of oscarapi", - RemovedInOScarAPI4, + RemovedInFutureRelease, stacklevel=2, ) # this field always needs the full object diff --git a/oscarapi/utils/deprecations.py b/oscarapi/utils/deprecations.py index 88ccef88..88677141 100644 --- a/oscarapi/utils/deprecations.py +++ b/oscarapi/utils/deprecations.py @@ -1,2 +1,2 @@ -class RemovedInOScarAPI4(PendingDeprecationWarning): +class RemovedInFutureRelease(PendingDeprecationWarning): pass