forked from litchfield/django-liststyle
-
Notifications
You must be signed in to change notification settings - Fork 0
JanezStupar/django-liststyle
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Style your django admin changelist rows with ease! 1. Add liststyle to your PYTHONPATH and settings.py INSTALLED_APPS 2. Add to your ModelAdmin classes like this -- class MyModelAdmin(admin.ModelAdmin, ListStyleAdminMixin): ... def get_row_css(self, obj, index): if obj.active: return 'red red%d' % index return '' Note. If you have your own change_list_results.html; you'll need to incorporate the changes from the one here.
About
Style your django admin changelist rows with ease!
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published