I\'m using Django\'s TabularInline
admin view to edit category objects related to a main topic object, as shown here:
@sjaak-schilperoort Nice one! CSS is indeed the 'trick' to use. Example of the class Foo
which has Bar
as inline.
static/css/hide_admin_original.css
:
td.original p {
visibility: hidden
}
.inline-group .tabular tr.has_original td {
padding-top: 5px;
}
admin.py
:
class FooAdmin(admin.ModelAdmin):
inlines = [ BarInline, ]
class Media:
css = { "all" : ("css/hide_admin_original.css",) }
admin.site.register(Foo, FooAdmin)