Replies: 9 comments
-
|
Hi! I've fixed one bug after the 1.0b1 release (4a60c1f that you now use), so if you can try 83cb059, I'd love to hear if that fixes things for you. It fixes displaying the new forms on validation errors. |
Beta Was this translation helpful? Give feedback.
-
|
@vdboor now using If I find a moment I will likely try django-polymorphic with other packages which provide drag and drop ordering of inlines as this is the functionality I really desire. I can report back on them if it is of interest. |
Beta Was this translation helpful? Give feedback.
-
|
What CSS class does Grapelli use to hide the empty template forms? |
Beta Was this translation helpful? Give feedback.
-
|
I've added an explicit hiding rule to our template also works for grappelli. Does c8dd04b (and v1.0) work for you? (grappelli uses |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. This does hide the dummy forms and provide some compatibility with Grappelli. It doesn't work with the drag and drop reordering. I did look into merging the polymorphic inline template with the Grappelli one to enable this but I had little success. There is a small CSS tweak required for v1 when using Grappelli. I'll make a PR for it shortly. |
Beta Was this translation helpful? Give feedback.
-
|
You're welcome! Glad to know it works. If you like to create the template, notice that the main difference from the standard template are:
This might help to reconstruct a grapelli template that works with polymorphic inlines. |
Beta Was this translation helpful? Give feedback.
-
|
Hi! |
Beta Was this translation helpful? Give feedback.
-
|
I have the same issue, It would be nice if it used the same general bounding box as regular inlines: |
Beta Was this translation helpful? Give feedback.
-
|
just adding grp-module makes the display a fair bit nicer this can be done by adding |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm using commit #4a60c1f so apologies if this is on its way and thank you to everyone contributing to this project.
Currently when using Grappelli with polymorphic I can use
StackedPolymorphicInlineto create the inline as per the docs but it does not render correctly in the admin site.It appears the blank dummy forms are being displayed and validated on submission and new forms are added in a strange way.
Also Grappelli's drag and drop reordering through
sortable_field_namedoesn't appear compatible. It would be amazing to have this working with anorderfield on the parent model.I've attached a couple of screenshots showing the
StackedPolymorphicInlinewhen adding a new object and after adding a child field.Beta Was this translation helpful? Give feedback.
All reactions