Inlines can be grouped into tab navigation by specifying tab
attribute in the inline class. This behavior is enabled on changeform pages and it is not possible to add other custom tabs into tab navigation without writing custom code.
# admin.py
from django.contrib.auth.models import User
from unfold.admin import StackedInline, TabularInline
class MyTabularInline(TabularInline):
model = User
tab = True
class MyStackedInline(StackedInline):
model = User
tab = True
© 2023 - 2025 Created by unfoldadmin.com. All rights reserved.