However, it still errors with
{'jointable.0.id': [u'Join Table record with this ID already exists.']}
when I tried to save a LeftSide records with existing associations.
thanks for any and all help.
--
Picante Solutions Limited
e: ge...@picante.co.nz
w: 06 757 9488
More details. I'm using MySQL at the moment (but with a plan to move
to Postgresql.) The association table has a number of rows loaded
through these models, but not through my Django app directly. I used
the Model classes in a script to pre load a bunch of data. Could this
be the problem?
On Jul 9, 1:28 pm, ristretto.rb <ristretto...@gmail.com> wrote:
> OK, I took core=True off, and added it to the reference_no field. The
> problem seems to go away for the case when no there are no
> pre-existing joins. Clearly, I don't understand what core is for.
> I'll read the docs again, and see if it makes sense.
>
> However, it still errors with
>
> {'jointable.0.id': [u'Join Table record with this ID already exists.']}
>
> when I tried to save a LeftSide records with existing associations.
>
> thanks for any and all help.
>
I'm using the svn version. I updated this morning. I can't remember
if I was getting the error before I updated, or not.
I have spent the day tracking this down (it's taken me all day because
I don't know Django or Python very well, and I haven't been able to
find a comprehensive IDE that is worth much more then just an editor.
Argh.)
In any case, here's what I'm up to
In django-trunk/django/oldforms/__init__.py line around 68, I have put
some logging output. field.get_validation_errors(new_data) is coming
back as a oldforms.HiddenField when it generated the following error.
2008-07-09 04:03:08,227 DEBUG <class 'django.oldforms.HiddenField'>
2008-07-09 04:03:08,227 DEBUG {'jointable.0.id': [u'Join table with
this ID already exists.']}
I don't know why the admin system needs to put this following hidden
in the html
<input type="hidden" id="id_jointable.0.id"
name="jointtable.0.id" value="38" />
Now, I've traced this down to line 474, roughly of django-trunk/django/
oldforms/__init__.py where a the HiddenField class is defined. A
validator is passed in called "_curried". I have no idea what that
is. Going to stop here.