diff options
Diffstat (limited to 'src/mailman_pgp/model/base.py')
| -rw-r--r-- | src/mailman_pgp/model/base.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mailman_pgp/model/base.py b/src/mailman_pgp/model/base.py index 646bb7d..f5d8e77 100644 --- a/src/mailman_pgp/model/base.py +++ b/src/mailman_pgp/model/base.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License along with # this program. If not, see <http://www.gnu.org/licenses/>. -"""""" +"""Base class for all models.""" from public import public from sqlalchemy.ext.declarative import as_declarative @@ -26,9 +26,16 @@ from mailman_pgp.database import query @public @as_declarative() class Base: + """Custom declarative base.""" @classmethod def query(cls): + """ + A query helper. + + :return: A query on class. + :rtype: sqlalchemy.orm.query.Query + """ return query(cls) |
