On Tue, 2008-03-25 at 07:18 -0700, Oni wrote:
> Hello there. I get the impression, after reading the Auth / User stuff
> that comes with Django, extending models is not the best way of adding
> functionality. I've been using photologue for my e-commerce project.
> I'd like to extend Photo and Gallery but I seem to be hitting a lot of
> errors here and there. I suspect its not quite as simple as simply
> extending the model:
> 
> from django.db import models
> from contact.models import Contact
> from photologue.models import Gallery
> from django.contrib.auth.models import User
> 
> 
> class Portfolio(Gallery):

Stop right there. Model inheritance is NOT supported in trunk. It will
be soon, but it is not supported right now. It's not a trivial thing, so
it has taken some time and effort to get right.

Regards,
Malcolm

-- 
Quantum mechanics: the dreams stuff is made of. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
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