A not so dirty trick:

{% with inline_admin_formsets.0 as inline_admin_formset %}
        {% include inline_admin_formset.opts.template %}
{% endwith %}


> To insert inlines between two form fields I made this dirty trick:
>
> <div class="form-row">
>         {% for inline_admin_formset in inline_admin_formsets %}
>                 {# DIY method to show only the wanted inline. #}
>                 {% ifequal inline_admin_formsets.0  inline_admin_formset %}
>                         {% include inline_admin_formset.opts.template %}
>                 {% endifequal %}
>         {% endfor %}
> </div>
>

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to