parent
470de704bb
commit
3c67bb143b
@ -1,10 +1,18 @@
|
||||
from django.contrib import admin
|
||||
# Register your models here.
|
||||
from .models import commands
|
||||
from .models import commands, EmailSendLog
|
||||
|
||||
|
||||
class CommandsAdmin(admin.ModelAdmin):
|
||||
list_display = ('title', 'command', 'describe')
|
||||
|
||||
|
||||
admin.site.register(commands, CommandsAdmin)
|
||||
class EmailSendLogAdmin(admin.ModelAdmin):
|
||||
list_display = ('title', 'emailto', 'send_result', 'created_time')
|
||||
readonly_fields = ('title', 'emailto', 'send_result', 'created_time', 'content')
|
||||
|
||||
def has_add_permission(self, request):
|
||||
return False
|
||||
|
||||
def has_module_permission(self, request):
|
||||
return False
|
||||
|
||||
Loading…
Reference in new issue