admin.py 373 Bytes
Newer Older
1
2
from django.contrib import admin

3
from .models import ListAlias, MailingList, VerbatimAddress
4
5
6
7
8
9
10
11
12
13
14
15
16


class VerbatimAddressInline(admin.TabularInline):
    model = VerbatimAddress


class ListAliasInline(admin.TabularInline):
    model = ListAlias


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