美文网首页
10-Vue - user_operation adminx搭建

10-Vue - user_operation adminx搭建

作者: coderST | 来源:发表于2018-01-09 15:02 被阅读4次
import xadmin
from .models import UserFav, UserLeavingMessage, UserAddress


class UserFavAdmin(object):
    list_display = ['user', 'goods', "add_time"]


class UserLeavingMessageAdmin(object):
    list_display = ['user', 'message_type', "message", "add_time"]


class UserAddressAdmin(object):
    list_display = ["signer_name", "signer_mobile", "district", "address"]

xadmin.site.register(UserFav, UserFavAdmin)
xadmin.site.register(UserAddress, UserAddressAdmin)
xadmin.site.register(UserLeavingMessage, UserLeavingMessageAdmin)

相关文章

网友评论

      本文标题:10-Vue - user_operation adminx搭建

      本文链接:https://www.haomeiwen.com/subject/jpzwnxtx.html