Hello --

I could not get an answer on the IRC channel and I'm also not finding  
the right keywords for a successful search on the subject[1]:

You all know the model inheritance example with the classes Place and  
Restaurant. Imagine I mapped every Place in my street, now one of this  
empty places is becoming a restaurant. Is there an easy way to express  
this in django-ORM?

I tried

        p = Place(number=32)
        p.restaurant.create()

which gives

        DoesNotExist: Restaurant matching query does not exist.

Am I missing something or is this just not implemented? Is there a  
workaround?


Thanks
-- erik



[1] Apart from http://code.djangoproject.com/ticket/7623

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to