Re: Error -- 'str' object has no attribute 'creation_counter'

2009-06-23 Thread Phil
> OK thanks Karen, so the patch is the cause, foreign key filters now > work fine with the 1.0.2 main release. Of course, once again I have > the problem that tables with composite primary keys are not working... Whoops, I just described a different problem (foreign key filters) that was caused b

Re: Error -- 'str' object has no attribute 'creation_counter'

2009-06-23 Thread Phil
OK thanks Karen, so the patch is the cause, foreign key filters now work fine with the 1.0.2 main release. Of course, once again I have the problem that tables with composite primary keys are not working... I still don't understand why though. The class CompositePrimaryKey is not present in the m

Re: Error -- 'str' object has no attribute 'creation_counter'

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 2:02 AM, Phil wrote: > I'm sure I had this working before, but since then I have installed > the composite primary key patch and I notice the 2nd to last traceback > is in class CompositePrimaryKey... Could this be something to do with > it?? All ideas appreciated > Certa

Error -- 'str' object has no attribute 'creation_counter'

2009-06-22 Thread Phil
Hi, I'm getting the error 'str' object has no attribute 'creation_counter' in Django admin when adding an Inlines option to an admin.ModelAdmin class... and I don't understand why. Traceback: File "C:\python25\lib\site-packages\django\core\han

Re: [error] 'str' object has no attribute 'creation_counter'

2008-02-10 Thread Prof. William Battersea
Thank you, that's very clear now. I completely forgot those were querysets. Thank you for your time. WB On Feb 10, 2008 10:48 AM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Sun, 2008-02-10 at 10:33 -0500, Prof. William Battersea wrote: > [...] > > > > I had a Model called Gallery, wh

Re: [error] 'str' object has no attribute 'creation_counter'

2008-02-10 Thread Malcolm Tredinnick
On Sun, 2008-02-10 at 10:33 -0500, Prof. William Battersea wrote: [...] > > I had a Model called Gallery, which had a ManyToManyField pointing to > a Model called Location. In location, I had set my __str__ method to: > > return " / ".join(str(v) for v in self.location if not v == "") There ar

Re: [error] 'str' object has no attribute 'creation_counter'

2008-02-10 Thread Prof. William Battersea
On Feb 10, 2008 9:50 AM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Sun, 2008-02-10 at 09:27 -0500, Prof. William Battersea wrote: > > Hello, > > > > I created a Django application, validated it for errors and ran syncdb > > without any problems. I can click into the admin section but

Re: [error] 'str' object has no attribute 'creation_counter'

2008-02-10 Thread Malcolm Tredinnick
On Sun, 2008-02-10 at 09:27 -0500, Prof. William Battersea wrote: > Hello, > > I created a Django application, validated it for errors and ran syncdb > without any problems. I can click into the admin section but as soon > as I click "Add" for one of my models I get the error > AttributeError at

[error] 'str' object has no attribute 'creation_counter'

2008-02-10 Thread Prof. William Battersea
Hello, I created a Django application, validated it for errors and ran syncdb without any problems. I can click into the admin section but as soon as I click "Add" for one of my models I get the error AttributeError at /admin/gallery/gallery/add/ 'str' object has no attribute 'creation_counter' R