Re: trouble with pre_delete signal method

2012-12-20 Thread Thomas Orozco
It's great that you could find where the issue is coming from! Cheers, Thomas 2012/12/20 Mike Dewhirst > On 19/12/2012 11:58pm, Thomas Orozco wrote: > >> Hi, >> >> If you have no relationship, I'm a bit at a loss. I think the easier >> way would be to use a debugger if possible. >> >> I think

[Solved]: trouble with pre_delete signal method

2012-12-19 Thread Mike Dewhirst
On 20/12/2012 10:59am, Mike Dewhirst wrote: On 19/12/2012 11:58pm, Thomas Orozco wrote: Hi, If you have no relationship, I'm a bit at a loss. I think the easier way would be to use a debugger if possible. I think we need to know what field is causing the ValidationError. The line that's causin

Re: trouble with pre_delete signal method

2012-12-19 Thread Mike Dewhirst
On 19/12/2012 11:58pm, Thomas Orozco wrote: Hi, If you have no relationship, I'm a bit at a loss. I think the easier way would be to use a debugger if possible. I think we need to know what field is causing the ValidationError. The line that's causing an error is in the to_python method of the

Re: trouble with pre_delete signal method

2012-12-19 Thread Mike Dewhirst
On 20/12/2012 12:09am, Thomas Orozco wrote: Hi Mike, Could you try using a debugger as suggested? Yup Otherwise and if that's OK with you / your job, could you send me minimal model code off-list so I can have a look at it? I'm pretty sure we're just missing something obvious! : ) Ok - I

Re: trouble with pre_delete signal method

2012-12-19 Thread Thomas Orozco
Hi Mike, Could you try using a debugger as suggested? Otherwise and if that's OK with you / your job, could you send me minimal model code off-list so I can have a look at it? I'm pretty sure we're just missing something obvious! : ) Cheers, Thomas 2012/12/19 Mike Dewhirst > On 19/12/2012

Re: trouble with pre_delete signal method

2012-12-19 Thread Mike Dewhirst
On 19/12/2012 12:06am, Thomas Orozco wrote: I think you have a ForeignKey field that is required or limited and that is causing the ValidationError. Indeed, that line 988 is in the code for ModelChoiceField I have now been through the entire application and adjusted *ALL* foreign keys to be n

Re: trouble with pre_delete signal method

2012-12-19 Thread Thomas Orozco
Hi, If you have no relationship, I'm a bit at a loss. I think the easier way would be to use a debugger if possible. I think we need to know what field is causing the ValidationError. The line that's causing an error is in the to_python method of the ModelChoiceField object. Basically, you'll ne

Re: trouble with pre_delete signal method

2012-12-18 Thread Mike Dewhirst
Thomas Thanks for replying On 19/12/2012 12:06am, Thomas Orozco wrote: Hi, Could you provide the following information? - What's the relationship between A and B (model code of the field, if there is, would be great) There is no relationship at all. A and B are separately and independ

Re: trouble with pre_delete signal method

2012-12-18 Thread Thomas Orozco
Hi, Could you provide the following information? - What's the relationship between A and B (model code of the field, if there is, would be great) - The code of your pre_delete signal handler / the method it calls. I think you have a ForeignKey field that is required or limited and that i

trouble with pre_delete signal method

2012-12-16 Thread Mike Dewhirst
I'm getting a baffling ValidationError. Request URL:http://127.0.0.1:8000/admin/assembly/item/4/ Django Version: 1.4.3 Exception Type: ValidationError Exception Value: [u'Select a valid choice. That choice is not one of the available choices.'] Exception Location: C:\usr\