Changes between Initial Version and Version 1 of Ticket #29431
- Timestamp:
- May 22, 2018, 11:40:10 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29431 – Description
initial v1 1 1 for example in admin.py: 2 2 3 4 {{{ 3 5 class my_model_inline(admin.StackedInline): 4 6 can_add_empty = False 7 }}} 5 8 9 10 11 {{{ 6 12 stacked.html after {% for inline_admin_form in inline_admin_formset %} : 7 13 {% if opts.can_add_empty or not forloop.last %} - this helped don't call a formset.empty_form, if i dont need it. 14 }}} 8 15 9 16 but it is better check it already in: InlineAdminFormSet.__iter__(self), last iteration.