On Tue, 2008-01-29 at 12:50 -0800, Ivan Illarionov wrote:
> > One of the other things planned as part of qs-rf is the ability to use
> > custom queries to initialize models -- something like
> > ``Model.objects.custom_query("SELECT ...")``
> That's not enough - I need this feature to initialize models from the
> result of stored procedures, not just simple queries. One may also
> want to initialize their models from some external source like XML
> file, RSS feed or anything - there should be a way to do it easily.

Supporting every single conceivable way to create an instance out of the
box isn't really a good goal: the overhead that everybody ends up paying
to support the fringe cases is unfair. The phrase you're after for those
remaining cases is "custom __init__ method".

Malcolm

-- 
Depression is merely anger without enthusiasm. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to