-
Notifications
You must be signed in to change notification settings - Fork 69
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
Adds RawQuerySet to serializer #37
base: master
Are you sure you want to change the base?
Conversation
# for example | ||
elif isinstance(queryset, RawQuerySet) and \ | ||
self.properties is not None : | ||
self.serialize_queryset(queryset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you test self.properties ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's empirical: without "properties" option, the serialization doesn't work.
Thank you for this contribution ! I would need a little bit more details about what you are trying to achieve. If you can do it, please also add at least a small test to run the new code! |
Add an omit_model option to serializer
Conflicts: djgeojson/serializers.py
Hi,
I tried to add RawQuerySet class to serializer...
Thanks!