aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/model/base.py
diff options
context:
space:
mode:
authorJ08nY2017-06-22 19:12:04 +0200
committerJ08nY2017-06-22 19:12:04 +0200
commit5014e7a75f02f8c707847122ff43b37064247a43 (patch)
tree19bda52a1507fa7fe09e051ccee0129aace62d85 /src/mailman_pgp/model/base.py
parent429234b8db28ed6aadf21a3ccfce7eaf7065be71 (diff)
downloadmailman-pgp-5014e7a75f02f8c707847122ff43b37064247a43.tar.gz
mailman-pgp-5014e7a75f02f8c707847122ff43b37064247a43.tar.zst
mailman-pgp-5014e7a75f02f8c707847122ff43b37064247a43.zip
Diffstat (limited to 'src/mailman_pgp/model/base.py')
-rw-r--r--src/mailman_pgp/model/base.py9
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)