If I have this kind of modelAdmin:
admin.py
#...
class ScribPartAdmin(admin.ModelAdmin):
class Media:
css = {
'all': ('css/mymarkup.css',)
}
admin.site.register(ScribPart, ScribPartAdmin)
#...
mymarkup.css is actually included in all the pages concerning the object ScribPart.
How can I specify in which change_form, change_list, add_form, … template I need this css ?
To the best of my knowledge, you would need to override the template files for these views. You can inherit from the default template files, and just add your custom CSS in the
extraheadblock.