ModelChoiceIterator unnecessarly clone queryset
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
ModelChoiceField gets queryset as an init argument and uses ModelChoiceIterator for populating choices. Iterator than calls queryset.all() which makes an unnecessary clone of QS - making its cached data go away and issuing new database query if a queryset has been evaluated before.