commands: always add global publisher variables to context (#46710)

This commit is contained in:
Frédéric Péters 2020-12-22 18:00:36 +01:00
parent 935e405002
commit 35bdc42674
2 changed files with 1 additions and 1 deletions

View File

@ -28,4 +28,5 @@ class TenantCommand(BaseCommand):
raise CommandError('unknown tenant')
publisher.app_dir = os.path.join(publisher.APP_DIR, domain)
publisher.set_config()
publisher.substitutions.feed(publisher)
return publisher

View File

@ -33,7 +33,6 @@ class Command(TenantCommand):
def handle(self, *args, **options):
domain = options.pop('domain')
self.init_tenant_publisher(domain)
get_publisher().substitutions.feed(get_publisher())
try:
job = AfterJob.get(options['job_id'])
except KeyError: