Skip to content

Instantly share code, notes, and snippets.

@roundcorners
Created November 3, 2011 16:21
Show Gist options
  • Select an option

  • Save roundcorners/1336946 to your computer and use it in GitHub Desktop.

Select an option

Save roundcorners/1336946 to your computer and use it in GitHub Desktop.
The original admin.py with CommonMedia class
class CommonMedia:
js = (
'https://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js',
'/appmedia/admin/js/editor.js',
)
css = {
'all': ('/appmedia/admin/css/editor.css',),
}
// Register new class
site.register(models.Category,
list_display = ('full_name',),
search_fields = ['full_name',],
Media = CommonMedia,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment