Sunday, November 15, 2015

Re: Time out when requesting element from Admin


By default, Django's admin uses a select-box interface (<select>) for fields that are ForeignKey. Sometimes you don't want to incur the overhead of having to select all the related instances to display in the drop-down.


Thanks a lot - that was what it was all about; Django tried to populate a <select> box O(10000) elements - fair enough that that timed out. I just removed the foreignkey in question from the AdminModel!

Joakim

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/abad93f4-f72c-4b49-9f8b-ce8b8267b97d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment