class game(models.Model):
content = models.TextField()
def __str__(self):
return 'To game %s' % self.game.title
class Meta:
verbose_name = '答案'
verbose_name_plural = '答案'
class GameAdmin(admin.ModelAdmin):
list_display = (
"content",
)
admin.site.register(game,GameAdmin)
必须每个appp,admin.site.register注册一下,才能显示