admin.py 413 Bytes
Newer Older
1
from django.contrib import admin
2
from picampaign.campaign.models import (Campaign, CampaignContact,
3
                                        Argumentary)
4

5 6 7 8 9 10 11 12 13 14

class InlineContact(admin.TabularInline):
    model = CampaignContact


class CampaignAdmin(admin.ModelAdmin):
    inlines = [InlineContact]


admin.site.register(Campaign, CampaignAdmin)
15 16
admin.site.register(CampaignContact)
admin.site.register(Argumentary)