Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
editing nested object via TabularInline automatically published on page #6714
Nested object used as TabluraInline on save after add new or editing automatically are published. Request goes through admin page - TabluarInline open new window with editing as admin page. Same situation happen when nested object is editied via admin page.
class CardsAdmin(admin.TabularInline): model = Card.card_section.through extra = 0 class CardsPlugin(CMSPluginBase): model = CardsModel name = __('Cards') inlines = (CardsAdmin, ) render_template = 'cards.html' exclude = ('cards', ) def render(self, context, instance, placeholder): context = super().render(context, instance, placeholder) context['section'] = instance context['cards'] = instance.cards.order_by('cardcardsmodel__id') return context
After editing nested object, update should be change after hit publish button.