Fixes #19673: Ignore custom field references when compiling table prefetches

This commit is contained in:
Jeremy Stretch 2025-06-06 12:50:41 -04:00
parent 0e68901022
commit c5da128356

View File

@ -66,6 +66,9 @@ class BaseTable(tables.Table):
if column.visible:
model = getattr(self.Meta, 'model')
accessor = column.accessor
if accessor.startswith('custom_field_data__'):
# Ignore custom field references
continue
prefetch_path = []
for field_name in accessor.split(accessor.SEPARATOR):
try: