示例#1
0
文件: admin.py 项目: mlfreer/oTree
class SubsessionAdmin(adminlib.SubsessionAdmin):
    readonly_fields = adminlib.get_readonly_fields(models.Subsession)
    list_display = adminlib.get_list_display(models.Subsession,
                                             readonly_fields)
示例#2
0
文件: admin.py 项目: mlfreer/oTree
class PlayerAdmin(adminlib.PlayerAdmin):
    readonly_fields = adminlib.get_readonly_fields(models.Player)
    list_display = adminlib.get_list_display(models.Player, readonly_fields)
示例#3
0
文件: admin.py 项目: mlfreer/oTree
class GroupAdmin(adminlib.GroupAdmin):
    readonly_fields = adminlib.get_readonly_fields(models.Group)
    list_display = adminlib.get_list_display(models.Group, readonly_fields)