<filename>ietf/mailinglists/admin.py
# Copyright The IETF Trust 2016, All Rights Reserved

from django.contrib import admin

from ietf.mailinglists.models import List, Subscribed, Whitelisted


class ListAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'description', 'advertised')
    search_fields = ('name',)
admin.site.register(List, ListAdmin)


class SubscribedAdmin(admin.ModelAdmin):
    list_display = ('id', 'time', 'email')
    raw_id_fields = ('lists',)
    search_fields = ('email',)
admin.site.register(Subscribed, SubscribedAdmin)


class WhitelistedAdmin(admin.ModelAdmin):
    list_display = ('id', 'time', 'email', 'by')
admin.site.register(Whitelisted, WhitelistedAdmin)

<filename>ietf/mailinglists/admin.py
# Copyright The IETF Trust 2016, All Rights Reserved

from django.contrib import admin

from ietf.mailinglists.models import List, Subscribed, Whitelisted


class ListAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'description', 'advertised')
    search_fields = ('name',)
admin.site.register(List, ListAdmin)


class SubscribedAdmin(admin.ModelAdmin):
    list_display = ('id', 'time', 'email')
    raw_id_fields = ('lists',)
    search_fields = ('email',)
admin.site.register(Subscribed, SubscribedAdmin)


class WhitelistedAdmin(admin.ModelAdmin):
    list_display = ('id', 'time', 'email', 'by')
admin.site.register(Whitelisted, WhitelistedAdmin)

# Copyright The IETF Trust 2016, All Rights Reserved