Hi all, I have a model X that references another model Y with a ForeignKey. There are very few Xs, but close to a million Ys in the database (and it will grow considerably in the future). This causes MemoryErrors in the Django built-in admin pages: the ForeignKey is rendered as a select box field, and the admin attempts to populate it with all million possible Ys.
What would be the recommended solution? The ForeignKey relationship does not need to be actually editable in the admin, it's a simple uniqueness constraint that should never change after an X is created. I'm using the admin as more of a data browsing UI rather than a management UI. Thanks, Mattias -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

