Commit da2b0027 authored by okhin's avatar okhin 🚴

Adding Inline Importers to admin

parent ae459065
from django.contrib import admin
from picampaign.campaign.models import Campaign, CampaignContact, Argumentary
from picampaign.organization.models import Organization
from picampaign.importer.models import Importer
class InlineContact(admin.TabularInline):
model = CampaignContact
class InlineImporter(admin.TabularInline):
model = Importer
class CampaignAdmin(admin.ModelAdmin):
inlines = [InlineContact]
inlines = [InlineContact, Importer]
def get_queryset(self, request):
qs = super(CampaignAdmin, self).get_queryset(request)
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