# -*- coding:utf-8 -*- from django.contrib import admin from models import * class ProfileInline(admin.TabularInline): model = Profile_user fk_name = 'user' class ArticleAdmin(admin.ModelAdmin): inlines = [ProfileInline,] admin.site.register(Profile_user) admin.site.register(Article,ArticleAdmin)
我在admin进行注册,结果网页上出现了上方内容,应该怎么写才显示一段外键关联的外键内容
啥意思?