diff --git a/apis_core/generic/abc.py b/apis_core/generic/abc.py index 7610b7cca..72fe81621 100644 --- a/apis_core/generic/abc.py +++ b/apis_core/generic/abc.py @@ -218,3 +218,14 @@ def duplicate(self): return newobj duplicate.alters_data = True + + def uri_set(self): + ct = ContentType.objects.get_for_model(self) + return ( + ContentType.objects.get(app_label="apis_metainfo", model="uri") + .model_class() + .objects.filter(content_type=ct, object_id=self.id) + .all() + ) + +