update. 完成分类显示与详情页显示效果
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ class MainMenuAdmin(ImportExportModelAdmin):
|
||||
display_name.admin_order_field = 'name'
|
||||
|
||||
def is_enabled(self, obj):
|
||||
return obj.enabled
|
||||
return obj.visible
|
||||
|
||||
is_enabled.boolean = True
|
||||
is_enabled.short_description = '启用'
|
||||
|
||||
Reference in New Issue
Block a user