BaseTable should not clear existing prefetched data from QuerySet #9261
Labels
status: accepted
This issue has been accepted for implementation
type: housekeeping
Changes to the application which do not directly impact the end user
Proposed Changes
Remove the automatic clearing of pre-prefetched QuerySet data (i.e.
prefetch_related(None)
) from BaseTable initialization. This will ensure that any prefetched data already applied to the QuerySet is retained.Justification
Under some circumstances, it may be desirable to prefetch additional data that is not automatically detected by the table. There is no real benefit to prohibiting this.
The text was updated successfully, but these errors were encountered: