Changes between Initial Version and Version 5 of Ticket #7853
- Timestamp:
- Jul 21, 2008, 6:21:03 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7853
- Property Status new → reopened
- Property Component django-admin.py → Database wrapper
- Property Keywords django admin removed
- Property Milestone → 1.0 beta
- Property Summary django admin problem used model inheritance → Problem with model inheritance when parent has relation to self
-
Ticket #7853 – Description
initial v5 1 for example, 2 1 Test models: 3 2 {{{ 4 3 class Parent(models.Model): … … 10 9 }}} 11 10 12 1.13 11 14 When Child create in django admin, Parent reference id is not need. It should be inserted automatically. 15 But, admin complain it is necessary. 12 Test session: 13 {{{ 14 >>> child = Child.objects.create(a='parent field', b='child field') 15 >>> child.delete() 16 Traceback (most recent call last): 17 ... 18 ProgrammingError: "s_id" column is not exist at "forums_child" relation. 19 }}} 16 20 17 So, after I add one '''dummy Parent''', Child was created successfully with it's own automatically created parent's ID. 18 So, number of Parent was two. 19 Every create Child, choice dummy Parent is needed. 20 21 22 2. 23 24 like above code. 25 when delete Child or Parent, error occured about Child's s_id. 26 27 ---- 28 29 these error was begined at 0.97-pre-SVN-8007 21 These error was begined at 0.97-pre-SVN-8007 30 22 as I know, previous version is not shown these errors. 31 23