From 5c1a28ef3359e0c04ad465a26dc6f402da0e76b1 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Tue, 9 Apr 2024 03:30:58 +0200 Subject: [PATCH] formatting --- wagtail/admin/views/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/admin/views/mixins.py b/wagtail/admin/views/mixins.py index 3e05d23dfe..e15ca6bde1 100644 --- a/wagtail/admin/views/mixins.py +++ b/wagtail/admin/views/mixins.py @@ -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