#11863: Add a method to the orm to create Model instances from raw sql queries
---------------------------------------------------+------------------------
          Reporter:  seanoc                        |         Owner:  seanoc
            Status:  assigned                      |     Milestone:  1.2   
         Component:  Database layer (models, ORM)  |       Version:  SVN   
        Resolution:                                |      Keywords:        
             Stage:  Unreviewed                    |     Has_patch:  0     
        Needs_docs:  0                             |   Needs_tests:  0     
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by lukeplant):

 If it's possible to write this generically at all, then you don't actually
 have to write any boilerplate - you can already write a utility function
 that will do it for any model (and it doesn't have to be method on Model).
 It also sounds like you've got specific requirements in mind with your
 extra features.  Why don't you come up with a function that does what you
 want, and then we can see if it's likely to get into Django?  It may be
 that *some* of the things you want would definitely *not* make it, in
 which case there is no point adding a feature that is not even sufficient
 for the one person who's asked for it.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11863#comment:4>
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