Coverage for apis_core / apis_metainfo / models.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-30 14:27 +0000

1from django.db import models 

2from model_utils.managers import InheritanceManager 

3 

4from apis_core.generic.abc import GenericModel 

5 

6 

7class RootObject(GenericModel, models.Model): 

8 """ 

9 The very root thing that can exist in a given ontology. Several classes inherit from it. 

10 By having one overarching super class we gain the advantage of unique identifiers. 

11 """ 

12 

13 objects = models.Manager() 

14 objects_inheritance = InheritanceManager()