geonature.core.gn_meta.models.datasets
Module Contents
Classes
The base class of the |
- class geonature.core.gn_meta.models.datasets.TDatasets[source]
Bases:
geonature.core.gn_meta.models.commons.db.Model
The base class of the
SQLAlchemy.Model
declarative model class.To define models, subclass
db.Model
, not this. To customizedb.Model
, subclass this and pass it asmodel_class
toSQLAlchemy
. To customizedb.Model
at the metaclass level, pass an already created declarative model class asmodel_class
.- classmethod filter_by_readable(query, user=None)[source]
Return the datasets where the user has autorization via its CRUVED