Re: Error when relating a model to another model more than once

2006-02-02 Thread Rudolph
Thanks! That must be ticket 1305: http://code.djangoproject.com/ticket/1305 I'll just work around it for a while (until 'before too long') because the rest of Django fits all my needs! Rudolph

Re: Error when relating a model to another model more than once

2006-02-01 Thread Luke Plant
On Wednesday 01 February 2006 08:40, Rudolph wrote: > But do you know a solution to my original problem when relating a > model to another model more than once, which gives errors in the > admin interface. Using 'related_name' doesn't solve it. I think I just saw a bug filed against this, have a

Re: Error when relating a model to another model more than once

2006-02-01 Thread Rudolph
Thanks for your answer Luke! So magic-removal is at the moment more unstable then trunk, I guess. But do you know a solution to my original problem when relating a model to another model more than once, which gives errors in the admin interface. Using 'related_name' doesn't solve it. TIA, Rudol

Re: Error when relating a model to another model more than once

2006-01-31 Thread Luke Plant
On Tuesday 31 January 2006 14:46, Rudolph wrote: > Hi, > > I couldn't get the magic removal branch started without spending time > on fixing some errors (createsuperuser didn't work and runserver told > me "No module named sessions"). Could someone with a bit more Django > experience than me, try

Re: Error when relating a model to another model more than once

2006-01-31 Thread Rudolph
Hi, I couldn't get the magic removal branch started without spending time on fixing some errors (createsuperuser didn't work and runserver told me "No module named sessions"). Could someone with a bit more Django experience than me, try the code on the magic removal branch? Or does someone know a

Re: Error when relating a model to another model more than once

2006-01-31 Thread Rudolph
Thanks for your help. I changed my code to the version below but it didn't solve the problem. I'll try the magic-removal-branch and post my result here. Rudolph from django.core import meta class Language(meta.Model): abbreviation = meta.CharField('Two-letter abbreviation', maxlength=2, un

Re: Error when relating a model to another model more than once

2006-01-30 Thread Russell Keith-Magee
On 1/31/06, Rudolph <[EMAIL PROTECTED]> wrote: Hi,I'm using the development version of Django (trunk) and I've got twosimple classes. The Language class should contain the two letterlanguage abbreviations and the full name of the language in English. The LanguageTranslation class should contain tra

Re: Error when relating a model to another model more than once

2006-01-30 Thread Rudolph
To be complete, this is the Error page I get: TypeError at /admin/reg/languages/2/ 'bool' object is not callable Request Method: GET Request URL:http://localhost:8000/admin/reg/languages/2/ Exception Type: TypeError Exception Value:'bool' object is not callable Exceptio

Error when relating a model to another model more than once

2006-01-30 Thread Rudolph
Hi, I'm using the development version of Django (trunk) and I've got two simple classes. The Language class should contain the two letter language abbreviations and the full name of the language in English. The LanguageTranslation class should contain translated names of the languages: class Lan