From a01c8d6aa976110336c8073e56faf3f16f272ed8 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 24 Aug 2023 12:27:50 +0200 Subject: [PATCH] Use thema from audience. --- src/depot/publishers/woblink.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/depot/publishers/woblink.py b/src/depot/publishers/woblink.py index 4cbc89eb..e98ec585 100644 --- a/src/depot/publishers/woblink.py +++ b/src/depot/publishers/woblink.py @@ -220,6 +220,12 @@ class Woblink(BasePublisher): if errors is not None: errors.append(NoMainThemaWarning()) thema_codes.extend(meta.thema) + + thema_codes.extend( + Audience.objects.filter(code__in=meta.audiences).exclude( + thema=None).values_list('thema', flat=True) + ) + if not thema_codes: if errors is not None: errors.append(NoThema()) -- 2.20.1