I have two models Region and Zip. In the admin system, Zip is an inline model in Region
Whenever i want to add a Region it shows directly 25 listboxes with zips. This however takes a long time to load the page and results in an internal error.
There are 2,774 records in the zip table.
I suspect the cause of this error is that for each list, Django connects to the database to fetch those records.
There are 2,774 records in the zip table.
I suspect the cause of this error is that for each list, Django connects to the database to fetch those records.
Is there a way to solve this?
Thanks in advance
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/kEDmCO8GQZYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment