lambdamusic
2/7/2013 - 9:26 PM

Django: ModelAdmin media definitions

Django: ModelAdmin media definitions

class ArticleAdmin(admin.ModelAdmin):
    class Media:
        css = {
            "all": ("my_styles.css",)
        }
        js = ("my_code.js",)