#8444: Model inheritance - inherited model could use some fields cleanup
-------------------------------+--------------------------------------------
 Reporter:  trebor74hr         |       Owner:  nobody    
   Status:  new                |   Milestone:            
Component:  Core framework     |     Version:  SVN       
 Keywords:  model inheritance  |       Stage:  Unreviewed
Has_patch:  0                  |  
-------------------------------+--------------------------------------------
 This is not important, just a little strange (IMHO). I have following
 scenario:
 {{{
 class Question(models.Model):
     ...

 class UserQuestion(Question):
     ...

 class WebQuestion(Question):
     ...
 >>> q = Question.objects.all()[0]
 >>> dir(q)
 [... 'userquestion', ..., 'webquestion'] - OK

 }}}
 {{{
 >>> dir(q.userquestion)
 [...'userquestion', ..., 'question_ptr', 'question_ptr_id', ...,
 'webquestion']
 }}}
 Two issues:
  - Why to have userquestion again?
     - this looks odd:
        {{{
         >>> q.userquestion.userquestion
        }}}
  - Is it possible to have model instance which has multiple inheritance
 (one question is userquestion and webquestion in the same time)?
      - if not why to have webquestion?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8444>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to