#20470: Querying crashes with RuntimeError (dictionary changed size during
iteration)
-------------------------------------+-------------------------------------
     Reporter:  jpaalasm             |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.5
  (models, ORM)                      |               Resolution:  needsinfo
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by bmispelon):

 * cc: bmispelon@… (added)
 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 I also tried reproducing the issue without any success.

 Your example is missing the definition of the models you use in the
 ForeignKeys, so I had to improvise. Here's what I used:

 {{{#!python
 class SignalFragment(models.Model):
     pass


 class ContinuousSignal(models.Model):
     last_signal_fragment = models.ForeignKey(SignalFragment)


 class AnalysisTicket(models.Model):
     pass


 class SignalAnalysisTask(models.Model):
     continuous_signal = models.ForeignKey(ContinuousSignal,
 related_name='signal_analysis_tasks')
     closed = models.BooleanField(default=False, db_index=True)
     ticket = models.OneToOneField(AnalysisTicket, null=True, blank=True,
 related_name='analysis_task')
     latest_fragment = models.ForeignKey(SignalFragment, null=True,
 blank=True, related_name='analysis_task_latest_fragments')
 }}}

 I tried running the example you gave with master, 1.5, and even with 1.4
 but none of them raised any exception.

 In consequence, I'm marking this as `needsinfo`.
 Please re-open with more information on how to reproduce the issue.

 Thanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20470#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.de359265fb97d4ad1a569255dd7a681f%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to