#9861: Requests make feature:  Using a subset of fields on the Model
---------------------------------------------------+------------------------
          Reporter:  freeren                       |         Owner:  nobody     
                          
            Status:  closed                        |     Milestone:             
                          
         Component:  Database layer (models, ORM)  |       Version:  SVN        
                          
        Resolution:  wontfix                       |      Keywords:  Using a 
subset of fields on the Model
             Stage:  Unreviewed                    |     Has_patch:  0          
                          
        Needs_docs:  0                             |   Needs_tests:  0          
                          
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => wontfix
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 This isn't a common enough requirement to justify all the extra code it
 would require. The solution is to just create a separate model that
 contains the fields you need and set the `Meta.db_table` attribute to
 point to the other model's database table. You'll also need the support
 from #3163 (unless you avoid running syncdb for that app), but that should
 be in before Django 1.1 is released.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9861#comment:1>
Django <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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to