From 083222b34c9ae37be2555a3deafafc14f4055b29 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 16 Jun 2015 12:24:56 +0200 Subject: [PATCH] Fix service_post_save when applied on a ServiceInstance model ServiceInstance lacks the is_global field. --- src/authentic2_pratic/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2_pratic/models.py b/src/authentic2_pratic/models.py index f36f498..a7b77ed 100644 --- a/src/authentic2_pratic/models.py +++ b/src/authentic2_pratic/models.py @@ -447,7 +447,7 @@ def service_post_save(sender, instance, created, raw, **kwargs): return utils.sync_saml_provider(instance) utils.sync_cas_provider(instance) - if getattr(instance, 'is_global'): + if getattr(instance, 'is_global', None): instance.service_instances.update(service_url=instance.service_url, metadata_url=instance.metadata_url)