Changes between Initial Version and Version 5 of Ticket #7853


Ignore:
Timestamp:
Jul 21, 2008, 6:21:03 AM (16 years ago)
Author:
Russell Keith-Magee
Comment:

Replying to charmless:

Marking a ticket as a Duplicate means the problem is known and being worked on at another ticket. It is not meant to imply that a problem isn't valid (if it were, the duplicate would be closed too :) )

In this case, it looks like the reporter has put two issues in a single ticket (which, by the way, is very bad form). The first issue (inheritance doesn't work in admin) is clearly a duplicate of #6755. The second part of the report isn't obviously a duplicate, so it requires independent verification.

I've updated the ticket title and description to describe the problem better.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7853

    • Property Status newreopened
    • Property Component django-admin.pyDatabase wrapper
    • Property Keywords django admin removed
    • Property Milestone1.0 beta
    • Property Summary django admin problem used model inheritanceProblem with model inheritance when parent has relation to self
  • Ticket #7853 – Description

    initial v5  
    1 for example,
    2 
     1Test models:
    32{{{
    43class Parent(models.Model):
     
    109}}}
    1110
    12 1.
    1311
    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.
     12Test session:
     13{{{
     14>>> child = Child.objects.create(a='parent field', b='child field')
     15>>> child.delete()
     16Traceback (most recent call last):
     17...
     18ProgrammingError:  "s_id" column is not exist at "forums_child" relation.
     19}}}
    1620
    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
     21These error was begined at 0.97-pre-SVN-8007
    3022as I know, previous version is not shown these errors.
    3123
Back to Top