admin.py 373 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from django.contrib import admin

from .models import MailingList, VerbatimAddress, ListAlias


class VerbatimAddressInline(admin.TabularInline):
    model = VerbatimAddress


class ListAliasInline(admin.TabularInline):
    model = ListAlias


@admin.register(MailingList)
class GeneralMeetingAdmin(admin.ModelAdmin):
    inlines = (VerbatimAddressInline, ListAliasInline)