Is there a way to display the admin filters in two columns?
This is what I have now in admin.py
class LawyerAdmin(admin.ModelAdmin):
fieldsets = [
('Name', {'fields': ['first', 'last', 'firm_name',
'firm_url', 'school', 'year_graduated']}),
# ('School', {'fields': ['school', 'year_graduated']}),
]
list_display = ('first', 'last', 'school', 'year_graduated',
'firm_name', 'firm_url')
list_filter = ['school', 'year_graduated']
search_fields = ['last', 'school', 'firm_name']
Is it possible to display 'school' in one column and 'year_graduated'
in another column?
I tried
list_display = ('first', 'last', 'school', 'year_graduated',
'firm_name', 'firm_url')
list_filter = ['school']
list_filter = ['year_graduated']
search_fields = ['last', 'school', 'firm_name']
but that doesn't work.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home