Opened 16 years ago

Last modified 13 years ago

#7853 closed

django admin problem used model inheritance — at Initial Version

Reported by: osanha@… Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Keywords: model inheritance
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

for example,

class Parent(models.Model):
    s = models.ForeignKey('self', null=True, blank=True)
    a = models.TextField()
    
class Child(Parent):
    b = models.TextField()

1.

When Child create in django admin, Parent reference id is not need. It should be inserted automatically.
But, admin complain it is necessary.

So, after I add one dummy Parent, Child was created successfully with it's own automatically created parent's ID.
So, number of Parent was two.
Every create Child, choice dummy Parent is needed.

2.

like above code.
when delete Child or Parent, error occured about Child's s_id.


these error was begined at 0.97-pre-SVN-8007
as I know, previous version is not shown these errors.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top