-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageSpecField not getting serialized #290
Comments
Sorry, I'm not really familiar with Django's serializers. I wouldn't have expected serialization to work by default on custom field types so I'd say this is more of a feature request than a bug, though it is something we should support. |
Thanks for the reply, |
Hello. All you need is to add method value_to_string to ImageSpecField class |
Thanks for the tip @ChillyBwoy! Unfortunately, it seems like the serializers only use the stuff in |
Hello there,
I'm writing a simple image gallery site in django, and im using Imagekit for generating thumbnails, however i've got a problem when serializing data into JSON for an AJAX view, namely the
ImageSpecField
is getting ommited when data is being serialized (by django built in serializer), is this a bug or maybe i'm missing something here? I think by default it should returninstance.thumbnail.url
when the field is being serialized (assuming thumbnail isImageSpecField
)The text was updated successfully, but these errors were encountered: