diff --git a/apis_core/apis_entities/models.py b/apis_core/apis_entities/models.py index 2a073032a..86a2091bd 100644 --- a/apis_core/apis_entities/models.py +++ b/apis_core/apis_entities/models.py @@ -138,6 +138,9 @@ def get_serialization(self): @receiver(post_save, dispatch_uid="create_default_uri") def create_default_uri(sender, instance, created, raw, using, update_fields, **kwargs): + # disable the handler during fixture loading + if raw: + return create_default_uri = getattr(settings, "CREATE_DEFAULT_URI", True) skip_default_uri = getattr(instance, "skip_default_uri", False) if create_default_uri and not skip_default_uri: