Posted By

magicrebirth on 01/26/10


Tagged

js admin media django


Versions (?)

ModelAdmin media definitions


 / Published in: Django
 

URL: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-media-definitions

  1. class ArticleAdmin(admin.ModelAdmin):
  2. class Media:
  3. css = {
  4. "all": ("my_styles.css",)
  5. }
  6. js = ("my_code.js",)

Report this snippet  

You need to login to post a comment.