better use of CompteRendu proxy model

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

View File

@@ -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>