Michael Radziej wrote: > Gábor Farkas wrote: >> ===================== >> class Owner(Model): >> name = CharField(maxlength=500) >> thing = ForeignKey(Thing) >> ===================== >> >> now let's say you have a LOT of Things... like 50000. >> >> now, when you call Owner.AddManipulator(), he's going to fetch the WHOLE >> Thing-table. just to construct the AddManipulator. > > Change it to > ForeignKey(Thing, raw_id_admin=True) > and Django won't try to construct the select box. > > Yes, I find this quirky, too ;-) I hope that the manipulator > replacement will deal with this in a more sane way. >
manymanymanymanymany thanks :) phew, and it's also documented in the model_api docs :-(. again something that i could have found. btw. it would be nice probably to mention in the docs that it also works outside of the admin. but anyway, manymany thanks. gabor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers -~----------~----~----~----~------~----~------~--~---