diff options
Diffstat (limited to 'modules/user/models.py')
| -rw-r--r-- | modules/user/models.py | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/modules/user/models.py b/modules/user/models.py index 0731a67..138651a 100644 --- a/modules/user/models.py +++ b/modules/user/models.py @@ -15,6 +15,9 @@ class User(db.Model):      first_name = db.Column(db.String(50), nullable=False, default='')      last_name = db.Column(db.String(50), nullable=False, default='') +    interests = db.relationship('Interest', backref=db.backref('user', +        lazy='dynamic')) +      def is_active(self):        return self.is_enabled | 
