admin.py 274 Bytes
Newer Older
1
from django.contrib import admin
2

3 4
from picampaign.contact.models import Contact

5 6 7 8 9 10 11
class ContactAdmin(admin.ModelAdmin):
    list_display = ['full_name', 'mail', 'phone', 'twitter']
    search_fields = ('first_name', 'last_name')


admin.site.register(Contact, ContactAdmin)