Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread Todor Velichkov
@TheBeardedTemplar, I'm happy this solves the problem, but its more like a workaround, I'm interested to understand how this raise condition is achieved. ;) One thing that I was thinking that can cause this raise condition is that by default Django emulates CASCADE DELETE behavior on ForeignKeys

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread Constantine Covtushenko
HI guis, I need to mention one point that works well for me. If you check blob existence with: hasattr(widget, 'blob') then django responds False in the case Blob Does Not exist an True otherwise. At the same time DB request is performed but DoesNotExist exception is not raised. On Fri, Aug 12

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread TheBeardedTemplar
On Friday, August 12, 2016 at 1:19:17 PM UTC-6, Todor Velichkov wrote: > > Some more code will be helpful, for example the model structure, how do > you define the the `ForeignKey`? How do you subscribe for the signal? > You are saying that with sleep(1) the code works fine, is this mean that >

Re: DoesNotExist on ForeignKey Access

2016-08-12 Thread Todor Velichkov
Some more code will be helpful, for example the model structure, how do you define the the `ForeignKey`? How do you subscribe for the signal? You are saying that with sleep(1) the code works fine, is this mean that you can reproduce the problem at any time? However test it without fetching the bl