Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-15 Thread Curtis
I think this may be the same problem that is documented in http://code.djangoproject.com/ticket/1796 Obviously, making sure that you for e.g. import from 'myproj' is the right way, but I did submit a patch for management.py that seems to fix the problem (while not really addressing the root cause

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-15 Thread Gábor Farkas
James Bennett wrote: > On 6/14/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: >> Yeah, sorry about that. We really need to fix this. :-( >> >> But it's not entirely trivial from what I remember last time I dived in >> there. > > Better to let Guido and company fix relative imports in Python, >

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-14 Thread James Bennett
On 6/14/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Yeah, sorry about that. We really need to fix this. :-( > > But it's not entirely trivial from what I remember last time I dived in > there. Better to let Guido and company fix relative imports in Python, period. Supposed to happen soon,

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-14 Thread Malcolm Tredinnick
On Wed, 2006-06-14 at 20:14 +0200, gabor wrote: > opendev wrote: > > I have exactly the same problem, my django is the latest mr head unter > > Python 2.4(win32) > > ah, sorry, i forgot to post my findings here... > > basically the "problem" was that i specified the imports "relatively". > > ex

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-14 Thread Brett Parker
On Wed, Jun 14, 2006 at 10:51:02AM -0700, Rick wrote: > > I'm having a similar (but not identical) problem. > > In my app I have Rate's that belong to a Rateset, and Card's that use a > Rateset. So both Rate and Card have a foreign key connection to > Rateset. > > My application needs a list of

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-14 Thread gabor
opendev wrote: > I have exactly the same problem, my django is the latest mr head unter > Python 2.4(win32) ah, sorry, i forgot to post my findings here... basically the "problem" was that i specified the imports "relatively". example: 1. django-admin.py startproject myproject 2. manage.py sta

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-14 Thread Rick
I'm having a similar (but not identical) problem. In my app I have Rate's that belong to a Rateset, and Card's that use a Rateset. So both Rate and Card have a foreign key connection to Rateset. My application needs a list of "active" rates (those rates that are in use by an active Card). Here

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-14 Thread opendev
I have exactly the same problem, my django is the latest mr head unter Python 2.4(win32). --~--~-~--~~~---~--~~ 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@googl

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-05-16 Thread gabor
gabor wrote: > > for example, with the reverse_lookup test models, this query fails: > > >>> User.objects.get(poll__question__exact="What's the first question?") > Traceback (most recent call last): >File "", line 1, in ? >File "/Users/gabor/src/django/django/db/models/manager.py", line

going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-05-16 Thread gabor
hi, (from-svn (today) django), postgres reverse-lookups on foreign keys does not work for me. i even created a new empty project, and copied the example models from: http://www.djangoproject.com/documentation/db_api/ into it, and tried the example reverse-query, and it did not work :-( then