On returning appropriate subclass instances when querying a model with subclasses

2009-08-22 Thread Andrea Zilio
Hi all, Here's what I'm talking about: You have 3 models: Place, Restaurant and Cinema where Restaurant and Cinema both inherits from Place. So in the database you have some simple places, some places which really are Cinemas and some places which really are Restaurants. Well, I think that this

Re: On returning appropriate subclass instances when querying a model with subclasses

2009-08-23 Thread Andrea Zilio
an I find info to make such an add-on? Or are you just talking about editing the django source code on my installation? Thanks again ;) Andrea On Aug 23, 10:25 am, Russell Keith-Magee wrote: > On Sun, Aug 23, 2009 at 9:18 AM, Andrea Zilio wrote: > > > Hi all, > > > Here

Re: On returning appropriate subclass instances when querying a model with subclasses

2009-08-23 Thread Andrea Zilio
009 at 1:54 PM, Andrea Zilio wrote: > > > So seems that this idea was in fact rejected because of the O(# of > > nodes in the inheritance tree) joins > > needed to get all the fields from subclass tables. > > You may want to loook at Alex's post on the > sub

Re: On returning appropriate subclass instances when querying a model with subclasses

2009-08-23 Thread Andrea Zilio
So the answer to the question "Can I get the right instances with one single and only DB query" seems to be: "No, you cannot do so without touching the Django orm code". Am I right? On Aug 24, 1:52 am, Russell Keith-Magee wrote: > > > Or if this is planned for some future release. > > As I said

Re: Django Transaction Integrity

2010-05-16 Thread Andrea Zilio
Hi Piet, I'm just a django user, but I like very much your clear explanation about how django transactions works and what's wrong with them! Great work! Andrea On 13 Mag, 17:01, Piet Delport wrote: > Hi, > > I'm working with a company that uses and maintains a commercial Django-based > commerc

Analysis of Django Project

2010-06-12 Thread Andrea Zilio
Hello, I'm a graduate Computer Science student and in my Open Source Technologies class I've chosen Django as the project to write about in my final exam paper. So I'll write a short document (7-15 pages) about the vision, target, innovative features, possible business models, development process

Re: Analysis of Django Project

2010-06-13 Thread Andrea Zilio
le apps or apps implementing their modularity in very different ways (not following a patter or a standard method) I'm really interested in your opinions :) Andrea On Jun 12, 12:56 pm, Russell Keith-Magee wrote: > On Sat, Jun 12, 2010 at 6:10 PM, Andrea Zilio wrote: > > Hello, &

Django Lines of Code

2011-03-28 Thread Andrea Zilio
Hi! I was just wondering if anyone knows the total number of lines of code of Django. Andrea -- 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

Re: Django Lines of Code

2011-03-29 Thread Andrea Zilio
Sorry for that, but thanks for the answer. On Mar 28, 1:36 pm, Jacob Kaplan-Moss wrote: > On Mon, Mar 28, 2011 at 3:29 PM, Andrea Zilio wrote: > > I was just wondering if anyone knows the total number of lines of code > > of Django. > > Hi Andrea -- > > This questio