On Wed, Mar 26, 2008 at 3:47 PM, J. Cliff Dyer <[EMAIL PROTECTED]> wrote:

> On Wed, 2008-03-26 at 15:08 -0400, Karen Tracey wrote:
> >
> > The "TypeError: Cannot resolve keyword 'display' into field" is hit
> > before any SQL is executed for the call that triggered it.  I believe
> > this SQL SELECT is from the
> > "m.Display.objects.get(exhibit__slug_title='davie', position=11)"
> > which executed without error.
> >
> > More helpful to someone who might be able to track this down would be
> > your apps.cdla_app.zeum.models file.
> >
> > Karen
> >
>
> Thanks.  Models file at: http://dpaste.com/41448/
>

That  models.py has a couple of problems that make me think it can't really
be the one you are running with.  __str__ for Artifact references
self.rights_holder
but there is no such field.  Similarly __str__ for ArtifactInstance
references a commented-out field which would also cause problems.  If I fix
those up (they cause errors different from the one you report) by removing
the references to things that don't exist, I cannot recreate any problem
retrieving the Artifacts associated with a Display.  (I tried with Django
0.96 since I'm guessing that is what you are running based on the use of
__str__ and maxlength instead of __unicode__ and max_length, but also did a
quick test with current SVN and saw no problems there either, just
deprecation warnings for maxlength.)

So...what's different between the models.py you are actually using and the
one posted?  Answering that might shed some light on what's going on in your
case.  If you are fiddling with the models are you remembering to re-sync
the database?  (Though the error you report didn't get as far as the DB.)

Karen

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