Solved
I was culling children based on redundancy but a missing child was being
automatically inserted again. The error was being correctly reported as
a DoesNotExist problem but until I noticed the incremented pk in the
database I was looking in the wrong places.
Thanks again for your effor
Pankaj, thank you
I have tried the code in a number of ways - including the way you wrote
it[1] - and located in either Master[2] or Parent and it always runs to
completion without raising its own exception. It happily prints out
progress flags in the dev server and then finally delivers the 5
Hey Mike,
I tried to replicate what you were trying to do and I got it working.
By the way, you can directly delete filtered child objects, no need to
create a list. And you don't need to create a list for iterating over a
queryset.
Queryset supports iteration by default(
https://docs.djangoproj
Could someone please point out my mistake?
def clean_out(self):
child_lst = list(Child.objects.filter(master=self.master,
tags=self.mark))
for child in child_lst:
child.delete()
child_lst = list(Child.objects.f
On 4/02/2013 8:07pm, m1chael wrote:
I'll admit that i'm a bit old-school and most people are going to
cringe at seeing this,
I would set a DB trigger with the raw logic
I hadn't thought of that but I think it would be my last resort. I'd
like to keep all the logic in one place. The answer has
I'll admit that i'm a bit old-school and most people are going to
cringe at seeing this,
I would set a DB trigger with the raw logic
On Mon, Feb 4, 2013 at 2:14 AM, Mike Dewhirst wrote:
> This is the error ... Select a valid choice. That choice is not one of the
> available choices.
>
> I wa
6 matches
Mail list logo