Open SultanovvAsadbek opened 1 month ago
You can do this within a django ModelAdmin class by nesting the fields you want in the same row as a tuple in the fieldsets
property, it's unrelated to jazzmin itself.
class MyModelAdmin(admin.ModelAdmin):
fieldsets = (
('Some name', {
'fields': (
('first field', 'second field',),)
}),
)
If it's an inline admin model, the same logic applies, in your particular case it should be something like this
class UnitInline(admin.StackedInline):
model = Unit # This is where your model class goes
verbose_name_plural = "Some name" # This is how you want the tab to be named like
fieldsets = (
(None, {
'fields': (
('title','type',),
),
}),
)
I would like the input form to be located not under the title, but to the right of it.