Commit 9bc15758 authored by Aymeric Barantal's avatar Aymeric Barantal

add CampaignContact as inline on Campaign admin view

parent fbff88c6
......@@ -2,7 +2,16 @@ from django.contrib import admin
from picampaign.campaign.models import (Campaign, Contact, CampaignContact,
Argumentary)
admin.site.register(Campaign)
class InlineContact(admin.TabularInline):
model = CampaignContact
class CampaignAdmin(admin.ModelAdmin):
inlines = [InlineContact]
admin.site.register(Campaign, CampaignAdmin)
admin.site.register(Contact)
admin.site.register(CampaignContact)
admin.site.register(Argumentary)
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