[chronojump-server] Comments in HelperMixinObject
- From: Marcos Venteo Garcia <mventeo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump-server] Comments in HelperMixinObject
- Date: Wed, 21 Mar 2018 18:58:18 +0000 (UTC)
commit f368ca94167e2ec9fcd1b50d3c2501b295694ec6
Author: Marcos Venteo <mventeo gmail com>
Date: Wed Mar 21 19:28:47 2018 +0100
Comments in HelperMixinObject
chronojumpserver/models.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/chronojumpserver/models.py b/chronojumpserver/models.py
index 5fc5784..e428af4 100755
--- a/chronojumpserver/models.py
+++ b/chronojumpserver/models.py
@@ -9,7 +9,7 @@ from flask_login import UserMixin
class HelperMixin(object):
-
+ """Helper Mixin class to include id in the rest of tables"""
id = Column(Integer, primary_key=True)
@classmethod
@@ -23,6 +23,8 @@ class HelperMixin(object):
return o
+
+
class Organization(HelperMixin, Base):
__tablename__ = 'organization'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]