Created
November 3, 2011 16:21
-
-
Save roundcorners/1336946 to your computer and use it in GitHub Desktop.
The original admin.py with CommonMedia class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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