﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33869	Self Reference Inlines is not working form me	Ahmed F.	nobody	"I created a simple Self Reference  model for a family tree and when added inlines to the model it is not working , code below:

models.py
{{{
class Person(models.Model):
    pname = models.CharField(""Name"",max_length=100)
    father = models.ForeignKey(""familytree.Person"", on_delete=models.CASCADE,null=True, blank=True, editable=False)
    def __str__(self):
        return self.pname
}}}

admin.py

{{{
class PersonInline(admin.TabularInline):
    model: Person
    fields = ['pname',]
    extra: 3

class PersonAdmin(admin.ModelAdmin):
    fieldsets = [
    (None, {'fields': ['pname']}),
    ]
    inlines: (PersonInline)

admin.site.register(Person, PersonAdmin)
}}}

"	Uncategorized	closed	Uncategorized	4.0	Normal	invalid			Unreviewed	0	0	0	0	0	0
