diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-12 12:12:52 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-12 12:12:52 +0200 |
commit | a019e8901b30526b9d7a5443c9355fe87ce620bf (patch) | |
tree | 3ad3128de9116c7e9ed9a891529c2f6f2e8af8ec /pyaggr3g470r/models.py | |
parent | Better use of the decorator 'feed_access_required'. (diff) | |
download | newspipe-a019e8901b30526b9d7a5443c9355fe87ce620bf.tar.gz newspipe-a019e8901b30526b9d7a5443c9355fe87ce620bf.tar.bz2 newspipe-a019e8901b30526b9d7a5443c9355fe87ce620bf.zip |
New ForeignKey between Article and User.
Diffstat (limited to 'pyaggr3g470r/models.py')
-rw-r--r-- | pyaggr3g470r/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py index da9c2e25..a21cfbfb 100644 --- a/pyaggr3g470r/models.py +++ b/pyaggr3g470r/models.py @@ -118,6 +118,7 @@ class Article(db.Model): date = db.Column(db.DateTime(), default=datetime.now) retrieved_date = db.Column(db.DateTime(), default=datetime.now) + user_id = db.Column(db.Integer, db.ForeignKey('user.id')) feed_id = db.Column(db.Integer, db.ForeignKey('feed.id')) def __repr__(self): |