This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from app import db | |
from sqlalchemy import desc, event, func, orm | |
from sqlalchemy.ext.associationproxy import association_proxy | |
from sqlalchemy.ext.declarative import declared_attr | |
from sqlalchemy_utils import ArrowType, auto_delete_orphans | |
from slugify import slugify_unicode | |
tags = db.Table('tag_associations', | |
db.Column('tag_id', db.Integer, db.ForeignKey('tags.id')), | |
db.Column('article_id', db.Integer, db.ForeignKey('articles.id'))) |