better use of CompteRendu proxy model

This commit is contained in:
Arthur Gerbaud committed 2016-09-08 18:10:47 +02:00
1 parent cfe0dc3f2f
commit d37455bfeb
5 files changed
+38 -25

No files matched your search

@@ -16,13 +16,12 @@
{% for form in inline_formset %}
<div class="dynamic-formset">
{% if form.id %}{% bootstrap_field form.id %}{% endif %}
{% if form.instance.pk %}{% bootstrap_field form.note_ptr %}{% endif %}
{% bootstrap_field form.sujet size="small" layout="horizontal" %}
{% if inline_formset.instance.pk %}
{% bootstrap_field form.text size="small" layout="horizontal" %}
{% if form.instance.pk %}
{% bootstrap_field form.note_ptr %}
{% bootstrap_field form.DELETE layout="horizontal" %}
{% endif %}
{% bootstrap_field form.text size="small" layout="horizontal" %}
</div>
{% endfor %}
</div>