Django

Code

Ticket #2885 (closed: duplicate)

Opened 2 years ago

Last modified 1 year ago

get_cached_row and hence select_related dead loop on circular ForeignKeys

Reported by: bangcok_dangerus ( at ] hotmail.com Assigned to: adrian
Milestone: Component: Database wrapper
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

select_related fails if there's a loop in ForeignKey relationships. fill_table_cache, which recursively follows ForeignKeys to generate the SQL query, was mentioned as a candidate for this in #2549 . This should now be fixed by the patch in #2874. get_cached_row, which recursively populates objects from the result of the query, suffers from the same problem.

I'll try get a patch up for this at some point.

-Basil

Attachments

Change History

01/24/07 09:32:17 changed by mir@noris.de

  • status changed from new to closed.
  • resolution set to duplicate.

duplicate of #3288


Add/Change #2885 (get_cached_row and hence select_related dead loop on circular ForeignKeys)




Change Properties
Action