Changes between Initial Version and Version 1 of Ticket #29431


Ignore:
Timestamp:
May 22, 2018, 11:40:10 AM (7 years ago)
Author:
Maxim Danilov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29431 – Description

    initial v1  
    11for example in admin.py:
    22
     3
     4{{{
    35class my_model_inline(admin.StackedInline):
    46        can_add_empty = False
     7}}}
    58
     9
     10
     11{{{
    612stacked.html after {% for inline_admin_form in inline_admin_formset %} :
    713{% if opts.can_add_empty or not forloop.last %} - this helped don't call a formset.empty_form, if i dont need it.
     14}}}
    815
    916but it is better check it already in: InlineAdminFormSet.__iter__(self), last iteration.
Back to Top