Skip to content

Polymorphism improvements #1

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

Merged
merged 5 commits into from
May 25, 2016

Conversation

leo-naeka
Copy link

OK @ograycode, so here are some improvements.

My goal was to clearly separate regular and polymorphic serializers, as well as regular and polymorphic relations.
The downside of this is that serializers polymorphic relations requires to be explicitly declared (at this time) and this can be... quite verbose (see example/serializers.py#L117-L118)...

This definitely needs some extra tests and above all, documentation.
I let you play with that, keep me informed!

@ograycode
Copy link

@leo-naeka thanks for doing this, looks like you may have solved some of the issues (like pulling out a generic polymorphic serializer and maybe solving the django <= 1.7 issue). What sort of tests do you suggest for it?

@leo-naeka
Copy link
Author

Hey @ograycode, what's up about this?
What do you think about merging this to get it upstream? Then, more people could be able to test and make suggestions.

@ograycode ograycode merged commit b02e1f6 into ZeroCater:polymorphism May 25, 2016
@ograycode
Copy link

@leo-naeka I wasn't sure if you were done with it or not.

@leo-naeka
Copy link
Author

@ograycode Everything may not be completely finished, but at this time, I suppose the best approach is to get some feedback from people awaiting this upstream.
If anyone (including me) have something new to implement, we'll make other pull requests ;-)

@leo-naeka leo-naeka deleted the zerocater_polymorphism branch June 28, 2022 12:07
@leo-naeka leo-naeka restored the zerocater_polymorphism branch June 28, 2022 12:08
@leo-naeka leo-naeka deleted the zerocater_polymorphism branch June 28, 2022 12:09
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