You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
462 B
20 lines
462 B
from django.contrib import admin
|
|
# Register your models here.
|
|
|
|
|
|
class CommandsAdmin(admin.ModelAdmin):
|
|
list_display = ('title', 'command', 'describe')
|
|
|
|
|
|
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
|