Problem has disappeared after moving admin.autodiscover() from
models.py to urls.py.

On Jul 29, 4:33 am, Karen Tracey <kmtra...@gmail.com> wrote:
> On Tue, Jul 28, 2009 at 4:21 PM, blumenkraft <vohs...@gmail.com> wrote:
>
> > I beg your pardon, my code actually is:
>
> > def simple_function(user):
> >  return UserEditions.objects.get(user = user).editions.all()
>
> > Here I have string 'UserEditions' in the code. I think my problem is
> > the same (reproduced under Apache only, same error message, many2many
> > field) as fixed tickethttp://code.djangoproject.com/ticket/2232
>
> That does look like a similar problem, but that ticket was fixed three years
> ago.  Possibly another instance of that problem has crept into the code.
> You might want to open a new ticket so that it doesn't get lost.
> Unfortunately I do not have time to dig into it (or even try to recreate)
> right now.
>
> Karen
>
>
>
> > Error message is: "Caught an exception while rendering: Cannot resolve
> > keyword 'usereditions' into field. Choices are: <fields from other
> > model>"
>
> > Also I have nondeterministic behavior: I press button "reload page"
> > and sometimes everything works.
>
> > On Jul 28, 8:54 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> > > On Tue, Jul 28, 2009 at 11:07 AM, blumenkraft <vohs...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > I have sophisticated model:
>
> > > > class UserEditions(SophisticatedModel):
> > > >    user = models.ForeignKey(User)
> > > >    editions = models.ManyToManyField(Edition)
>
> > > > and simple function:
>
> > > > def simple_function(user):
> > > >  return UserEdition.objects.get(user = user).editions.all()
>
> > > > Everything works fine when I call this function under development
> > > > server.
> > > > After switching to Apache+mod_python I'm getting strange error:
> > > > "Cannot resolve keyword 'usereditions' into field"
>
> > > > Any ideas?
>
> > > The full traceback might help.  It doesn't seem possible that the code
> > you
> > > posted is causing that error message, as the code does not contain the
> > > string 'usereditions'.
>
> > > 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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to