Hi Marc,
fine, was thinking on supporting just the simple case without the Prefetch
object.
Il 31/12/2015 00:30, Marc Tamlyn ha scritto:
Hi Richard,
Overriding the queryset is a pretty simple method override, I'm not sure there
is sufficient need for prefetching here. In particular, the synta
Hi Richard,
Overriding the queryset is a pretty simple method override, I'm not sure
there is sufficient need for prefetching here. In particular, the syntax
for prefetch related is much more complex than for select related, so it's
less well suited to this kind of shortcut.
Marc
On 30 Dec 2015 1
Hello,
the need to list an m2m relationship serialized in the admin list view happens
quite often to me and overriding the queryset may not be as trivial as a
ModelAdmin attribute. It makes sense to me to match what is possible with
foreign keys and list_select_related.
Any opinion on impleme