Skip to content

Commit

Permalink
Renamed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
specialunderwear committed Oct 9, 2023
1 parent eb2a8c8 commit 3e8e528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions oscarapi/serializers/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion oscarapi/utils/deprecations.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
class RemovedInOScarAPI4(PendingDeprecationWarning):
class RemovedInFutureRelease(PendingDeprecationWarning):
pass

0 comments on commit 3e8e528

Please sign in to comment.