#2562: Too much fields in User model
-----------------------------------+----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  adrian
     Type:  enhancement            |       Status:  new   
 Priority:  normal                 |    Milestone:        
Component:  Core framework         |      Version:  0.95  
 Severity:  normal                 |   Resolution:        
 Keywords:  auth, core             |  
-----------------------------------+----------------------------------------
Comment (by Alexey Solyanik <[EMAIL PROTECTED]>):

 There still may be situations, when you need to retreive instances of
 subclasses. But I think in such cas you can use specific function (like
 ''As''), wich will handle lookups trough '''subclasses''' tables.
 
 {{{
 guy = Employee(firstname='Bar', lastname='Fooman')
 guy.save()
 print User.object.all().As(Employee).lastname
 }}}
 
 This fucntion will look in ''Employee'' table for records with given
 ''user_id'', and return ''Employee'' instances.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2562>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to