A
A
Alexander2016-04-22 09:24:38
Django
Alexander, 2016-04-22 09:24:38

Why doesn't StackedInline keep the last element?

class SocialInLine(admin.StackedInline):
    model = social_link
    max_num = 2
class EmployeeAdmin(admin.ModelAdmin):
.......
    inlines = [
        SocialInLine
    ]

I enter data:
d7f76034a41240cba72a71d3f9e91902.png
but why doesn't it save the last element for me?
c97378d954294cca8bee2ae4687446b7.pngDjango==1.9

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey K, 2016-04-22
@kentuck1213

You explicitly specified max_num = 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question