0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-24 10:58:52 +01:00

formatting

This commit is contained in:
Abdelrahman 2024-04-09 03:30:58 +02:00
parent 038894af1c
commit 5c1a28ef33

View File

@ -261,7 +261,7 @@ class SpreadsheetExportMixin:
model_class = queryset.model
except AttributeError:
return force_str(field)
for model in relation:
foreign_field = model_class._meta.get_field(model)
model_class = foreign_field.related_model