Commit 9b0bba3e authored by okhin's avatar okhin

Adding Inline for phones

parent 0d5f9d89
Pipeline #722 failed with stage
in 1 minute and 5 seconds
......@@ -2,7 +2,11 @@ from django.contrib import admin
from picampaign.contact.models import Contact, Phone
class InlinePhone(admin.TabularInline):
model = Phone
class ContactAdmin(admin.ModelAdmin):
inlines [InlinePhone]
list_display = ['full_name', 'mail', 'twitter', 'phone']
search_fields = ('first_name', 'last_name')
......
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