* chore: Use codespell to fix typos in code. Second part of replacement of #4651 @rjsparks, I probably need to revert some things here, and I also still need to add that new migration - how do I do that? * Revert migrations * Migrate "Whitelisted" to "Allowlisted" * TEST_COVERAGE_MASTER_FILE -> TEST_COVERAGE_MAIN_FILE * Fix permissions * Add suggestions from @jennifer-richards
24 lines
663 B
Python
24 lines
663 B
Python
# Copyright The IETF Trust 2016, All Rights Reserved
|
|
|
|
from django.contrib import admin
|
|
|
|
from ietf.mailinglists.models import List, Subscribed, Allowlisted
|
|
|
|
|
|
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 AllowlistedAdmin(admin.ModelAdmin):
|
|
list_display = ('id', 'time', 'email', 'by')
|
|
admin.site.register(Allowlisted, AllowlistedAdmin)
|