Commit 1babafbd authored by Mindiell's avatar Mindiell

Contact admin page modified to show more columns and add a search field

parent be3a8ca6
from django.contrib import admin
from picampaign.contact.models import Contact
admin.site.register(Contact)
class ContactAdmin(admin.ModelAdmin):
list_display = ['full_name', 'mail', 'phone', 'twitter']
search_fields = ('first_name', 'last_name')
admin.site.register(Contact, ContactAdmin)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment