Patrick,

Many thanks - you put me on the right path.

I had the core=true in the Foreign Key like so:-

class  C
ForeignKey(Table A, core=true, edit_inline)
I didn't have core=true on any other fields.

So I tried it on another field at this cured the problem. I presume that by 
placing core=True only in the Foreign Key field it was the same effect as 
having none at all.  In which case it had the following effect as per the 
documentation:-

"If the core fields in an in-line edited object are cleared, the object will be 
deleted".

This looks like what has happened.  However, it raises a couple of things:-

1)  The documentation perhaps could be explicit on this.

2)  At the moment the object is deleted when you click on the save button, 
without explanation or any error message, which surely can't be right.  








patrickk wrote:
> can you give the exact model-definition?
> where is "core=True"?
>
> patrick
>
> Am 27.10.2006 um 14:15 schrieb Merric Mercer:
>
>   
>> I'm having a problem which is causing me real concern.
>>
>> When I try to save a new record to a table, via the Admin (editing
>> inline),  ALL of the records within that table are being deleted!
>>
>> Here's a brief description of what I have:-
>>
>> class A  # This is a user profile table that extends USER
>> OneToOneKey(USER)
>>
>> class B
>> ManyToManyKey(Table D)
>>
>> class  C
>> ForeignKey(Table A, edit_inline)
>> ForeignKey(Table B)
>>     class Admin
>>        pass
>>
>> I can add records without any problem to Table C using the list for
>> Table C.   I've also confirmed this by checking the database (mySQL)
>> However, when I try to add/modify records to Table C, via Table A then
>> ALL of the records for Table C get deleted.
>> I don't get any error messages.
>>
>> MerMer
>>
>>     
>
>
> >
>
>
>   


--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to