Using django-polymorphic with django-import-export #840
Unanswered
ShaheedHaque
asked this question in
Integrations
Replies: 1 comment
-
|
Related issue on django-import-export: django-import-export/django-import-export#1521 It seems like there were some admin incompatibilities that were fixed for the issue you filed. @ShaheedHaque did you get it it work with django-polymorphic? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use polymorphic models with the Admin import-export support provided by django-import-export. I've not (yet) looked into how this project does it's work, but a quick test reveals that the saved .csv file does not contain the fields from the subclass models (the saved data DOES contain the polymorphic_ctype as one might hope).
Now, I realise that the saved format of the data is a slightly tricky problem, especially if you have multiple levels of inheritance because the flat (relational-like!) format of a .csv file does not lend itself to the variable nature of the fields/columns. Maybe something like JSON encoding of the child fields might be needed?
At any rate, it would be nice to have this integration.
Beta Was this translation helpful? Give feedback.
All reactions