Skip to content

Commit

Permalink
Fix exports with segments
Browse files Browse the repository at this point in the history
  • Loading branch information
gannetson committed Aug 10, 2022
1 parent 7c6d97a commit 2219a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluebottle/utils/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def export_as_csv(modeladmin, request, queryset):
row = [prep_field(request, obj, field, manyToManySep) for field in field_names]

# Write extra field data
if queryset.model is Member:
if queryset.model is Member or issubclass(queryset.model, Contributor):
for segment_type in SegmentType.objects.all():
segments = ", ".join(obj.segments.filter(
segment_type=segment_type).values_list('name', flat=True))
Expand Down

0 comments on commit 2219a1b

Please sign in to comment.