stop exporting experimental database models
This commit is contained in:
parent
c35413d4f6
commit
783c9e7a73
1 changed files with 8 additions and 1 deletions
|
@ -1173,5 +1173,12 @@ class BitTorrentPieces(BaseModel):
|
|||
)
|
||||
|
||||
|
||||
is_model = lambda x: inspect.isclass(x) and issubclass(x, BaseModel) and x is not BaseModel
|
||||
beta_classes = set([ManifestLayerScan, Tag, BlobPlacementLocation, ManifestLayer, ManifestList,
|
||||
BitTorrentPieces, MediaType, Label, ManifestBlob, BlobUploading, Blob,
|
||||
ManifestLayerDockerV1, BlobPlacementLocationPreference, ManifestListManifest,
|
||||
Manifest, DerivedImage, BlobPlacement])
|
||||
is_model = lambda x: (inspect.isclass(x) and
|
||||
issubclass(x, BaseModel) and
|
||||
x is not BaseModel and
|
||||
x not in beta_classes)
|
||||
all_models = [model[1] for model in inspect.getmembers(sys.modules[__name__], is_model)]
|
||||
|
|
Reference in a new issue