diff --git a/netbox/netbox/models/features.py b/netbox/netbox/models/features.py index be58d647a6..e0d03d6e78 100644 --- a/netbox/netbox/models/features.py +++ b/netbox/netbox/models/features.py @@ -676,6 +676,8 @@ def has_feature(model_or_ct, feature): # If a ContentType was passed, resolve its model class and run the associated feature test elif type(model_or_ct) is ContentType: model = model_or_ct.model_class() + if model is None: # Stale content type + return False try: test_func = registry['model_features'][feature] except KeyError: