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

This commit is contained in:
Jeremy Stretch 2025-06-09 14:12:48 -04:00 committed by GitHub
parent 2bfb9f4ed0
commit dc8267d890
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: