I did run a syncdb.  Multiple times, actually - I've dropped and
recreated the tables a dozen times.  The category_ptr_id is there in
the table and populated correctly.

I'm on my work computer, and the code is on my home computer.  I'll
paste the model defs this afternoon.

Thanks for the help.

On Mar 23, 9:48 am, Bob Waycott <[email protected]> wrote:
> You ran a syncdb after creating your custom Category classes?
> The complaint of a missing category_ptr_id seems to indicate that you coded
> up ParentCategory to subclass Satchmo's Category model and either did not
> run syncdb, or ran it before subclassing Category. Either way, Django is
> trying to find the base model class you are subclassing and failing. I have
> yet to see the ORM fail to include tables in a FROM clause.
>
> Care to share a dpaste of your model defs? If not, check your db schema and
> see if you aren't missing a required column or two. My guess is you are.
>
> On Sun, Mar 22, 2009 at 10:14 PM, Jon <[email protected]> wrote:
>
> > I'm trying to create two extensions of the Category class.  Each would
> > add a couple attributes, but more importantly, one is the parent of
> > the other.
>
> > In my ChildCategory class, I have:
> > parent = models.ForeignKey(ParentCategory)
>
> > My intention here is to override the parent from Satchmo's Category
> > and force the ChildCategory to have a parent of class ParentCategory.
> > Syncdb seems happy, and Django Admin seems happy, but when I add a
> > ChildCategory, I get an OperationalError: no such column:
> > my_category_ParentCategory.category_ptr_id.
>
> > Looking at the log, it's trying to pull the category_ptr_id from the
> > ParentCategory table without actually including the ParentCategory
> > table in the FROM clause.
>
> > Any ideas?  Does this make sense at all?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to