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.
git-test/servermanager/admin.py

16 lines
464 B

from django.contrib import admin
# Register your models here.
from .models import commands, EmailSendLog
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