On Mon, 2006-08-14 at 09:03 -0700, 一首诗 wrote: > Hi all, > > I met a problem. > > When I added a Foreign Key field to list_display, django falls into a > dead loop and used up memories. > > When I removed the field, it's all OK. > > I don't think it's my code's problem because I've tested the __str__ > function of both models related by the Foreign Key.
If it really is in a loop, interrupting the development server with ^C should print a traceback showing where the code is currently executing (and what methods it called to get there). That will give you some places to start putting print statements to see what's going on. Alternatively, can you post a short example that illustrates the problem so that we can have a look? Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---