Re: Is this a bug or is adding a ForeignKey relations at runtime not supported?

2010-08-24 Thread Olek
On 24 Sie, 13:13, Olek wrote: > print 'It seems that forcing cache on SomeObject._meta to reload fixes > the problem." Please note that this line should end with >'<, not >"<. Sorry. Other than that code works. :) -- You received this message because y

Is this a bug or is adding a ForeignKey relations at runtime not supported?

2010-08-24 Thread Olek
Hi, Could you please look at this situation where I try to deal with adding ForeignKey relation at runtime and using it in a annotate construct? Is this code illustrates a bug in Django or am I trying to do something illegal here? I'm using Django 1.1. --- --- localhost:~$ django-admin.py start