Skip to content

Conversation

pgiki
Copy link

@pgiki pgiki commented Aug 31, 2025

This change will be it convenient to further customize ImageUrlField in the customapp.serializers.fields class. With the initial setup this was not possible since teh changed areas hard coded import ImageUrlField from oscarapi.fields instead of using the dynamic import get_api_class method.

@@ -8,8 +8,9 @@
import oscar.models.fields

from oscarapi.utils.exists import construct_id_filter
from .fields import ImageUrlField
from oscarapi.utils.loading import get_api_classes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use get_api_class

@pgiki pgiki requested a review from samar-hassan September 1, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants