Created
March 23, 2016 12:59
-
-
Save yevgnenll/8000c1beccdecf8194a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
from announce.models import SMS, Slack, Email | |
@admin.register(SMS) | |
@admin.register(Slack) | |
@admin.register(Email) | |
class AnnouncesAdminModel(admin.ModelAdmin): | |
list_display = admin.ModelAdmin.list_display + ( | |
"receiver", | |
"sender", | |
"content", | |
"created_at", | |
"updated_at", | |
"msg_type", | |
) | |
list_filter = ( | |
"created_at", | |
"updated_at", | |
"msg_type", | |
) | |
search_fields = [ | |
'receiver', | |
'sender', | |
'content', | |
'msg_type', | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment