from django.contrib import admin
from queryCaidan.models import menu


# Register your models here.

class menuAdmin(admin.ModelAdmin):
    list_display = ('typeName', 'name', 'image_data', 'status')
    list_editable = ['status']
    readonly_fields = ('image_data',)  # 必须加这行 否则访问编辑页面会报错
    search_fields = ('typeName', 'name')
    list_filter = ('typeName', 'status', 'name')
    list_per_page = 30


admin.site.register(menu, menuAdmin)
from django.contrib import admin

# Register your models here.

0e003b17bc6d649d6003e278b32e4ceed62e609c
<mask token>


class menuAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


<mask token>

<mask token>


class menuAdmin(admin.ModelAdmin):
    list_display = 'typeName', 'name', 'image_data', 'status'
    list_editable = ['status']
    readonly_fields = 'image_data',
    search_fields = 'typeName', 'name'
    list_filter = 'typeName', 'status', 'name'
    list_per_page = 30


<mask token>

<mask token>


class menuAdmin(admin.ModelAdmin):
    list_display = 'typeName', 'name', 'image_data', 'status'
    list_editable = ['status']
    readonly_fields = 'image_data',
    search_fields = 'typeName', 'name'
    list_filter = 'typeName', 'status', 'name'
    list_per_page = 30


admin.site.register(menu, menuAdmin)
<mask token>

from django.contrib import admin
from queryCaidan.models import menu


class menuAdmin(admin.ModelAdmin):
    list_display = 'typeName', 'name', 'image_data', 'status'
    list_editable = ['status']
    readonly_fields = 'image_data',
    search_fields = 'typeName', 'name'
    list_filter = 'typeName', 'status', 'name'
    list_per_page = 30


admin.site.register(menu, menuAdmin)
from django.contrib import admin

from django.contrib import admin
from queryCaidan.models import menu


# Register your models here.

class menuAdmin(admin.ModelAdmin):
    list_display = ('typeName', 'name', 'image_data', 'status')
    list_editable = ['status']
    readonly_fields = ('image_data',)  # 必须加这行 否则访问编辑页面会报错
    search_fields = ('typeName', 'name')
    list_filter = ('typeName', 'status', 'name')
    list_per_page = 30


admin.site.register(menu, menuAdmin)
from django.contrib import admin

# Register your models here.
