Django Admin as Inlines in my Model

I am trying to replicate inline strings in admin in Django to add related models to the FKd model on my own non-admin ModelForm. In particular, when you use StackeAdminInline and you add the “+ Add another XXX” bit to Javascript to add an additional related model.

This should be possible if the administrator can do this, but I cannot find a project with an example of how to do this. Can someone point me to something? I use crispy forms, although I'm glad if necessary. I saw https://github.com/runekaagaard/django-crispy-forms-fancy-formsets , but it seems that this was not preferable for Crispy maintainers, and thought that there should be another Jangoy way to do this if the administrator can do it already.

Thank!

+5
source share
1 answer

The JS used by the administrator is based on this jQuery http://code.google.com/p/django-dynamic-formset/ plugin , which is still supported.

+3
source

All Articles