Wednesday, October 29, 2014

Django formfield_for_foreignkey

As i stated in this question i am trying to follow something like this example.

Basically i am trying to set the queryset for a foreign key in my django admin.

It works as intended, but when i check the queries generated (with the help with django-debug-toolbar) i can notice there are too many.
I check the times that method is being called (with a print) and it is being accessed 3 times, with the exact same args (checked that too). Is that intended???...may be one of my tools???...can i fix it somehow???

Thanks for the help

--
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/fe46ce39-bd7b-41e7-9d25-d75b340e73c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment