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'll try and cut it down somewhat which might take a while. And who knows whether that might even fix the problem hey???

Back soon and many thanks for the focus

Mike


Cheers,

Thomas


2012/12/19 Mike Dewhirst <mi...@dewhirst.com.au
<mailto:mi...@dewhirst.com.au>>

    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 nullable in Postgres and null=True, blank=True
    throughout all models.

    I have also commented out all the save() and clean() methods of all
    models involved.

    In the Admin, I check the "Delete" check-box for the A record -
    which is displayed in-line on the Item page - and click [Save].

    There is no change in the error. The A record won't delete and the
    entire transaction rolls back.

    I'm stumped.

    Do you think this is an edge case?


    Mike

    --
    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
    <mailto:django-users@googlegroups.com>.
    To unsubscribe from this group, send email to
    django-users+unsubscribe@__googlegroups.com
    <mailto:django-users%2bunsubscr...@googlegroups.com>.
    For more options, visit this group at
    http://groups.google.com/__group/django-users?hl=en
    <http://groups.google.com/group/django-users?hl=en>.


--
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
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.

--
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to