diff options
author | Ben Sturmfels <ben@sturm.com.au> | 2021-09-23 21:38:42 +1000 |
---|---|---|
committer | Ben Sturmfels <ben@sturm.com.au> | 2021-09-23 21:38:42 +1000 |
commit | 78d8efed7fc84eefa687a08fa06c6604e4c52042 (patch) | |
tree | 086ba50975e73d84adea4bbf0166cf6b0d59363d /mediagoblin/db/models.py | |
parent | 5bda90f8219a2b03d18f4762a2fd7e77ab91007c (diff) | |
download | mediagoblin-78d8efed7fc84eefa687a08fa06c6604e4c52042.tar.lz mediagoblin-78d8efed7fc84eefa687a08fa06c6604e4c52042.tar.xz mediagoblin-78d8efed7fc84eefa687a08fa06c6604e4c52042.zip |
Fix some unused imports and local variables.
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index e65690fe..e4ac8143 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -22,11 +22,10 @@ TODO: indexes on foreignkeys, where useful. import logging import datetime -from sqlalchemy import Column, Integer, Unicode, UnicodeText, DateTime, \ - Boolean, ForeignKey, UniqueConstraint, PrimaryKeyConstraint, \ - SmallInteger, Date, types, Float -from sqlalchemy.orm import relationship, backref, with_polymorphic, validates, \ - class_mapper +from sqlalchemy import ( + Column, Integer, Unicode, UnicodeText, DateTime, Boolean, ForeignKey, + UniqueConstraint, PrimaryKeyConstraint, SmallInteger, Date, Float) +from sqlalchemy.orm import relationship, backref, class_mapper from sqlalchemy.orm.collections import attribute_mapped_collection from sqlalchemy.sql import and_ from sqlalchemy.sql.expression import desc @@ -35,7 +34,7 @@ from sqlalchemy.util import memoized_property from mediagoblin.db.extratypes import (PathTupleWithSlashes, JSONEncoded, MutationDict) -from mediagoblin.db.base import Base, DictReadAttrProxy, FakeCursor +from mediagoblin.db.base import Base, DictReadAttrProxy from mediagoblin.db.mixin import UserMixin, MediaEntryMixin, \ CollectionMixin, CollectionItemMixin, ActivityMixin, TextCommentMixin, \ CommentingMixin @@ -49,6 +48,7 @@ from pytz import UTC _log = logging.getLogger(__name__) + class GenericModelReference(Base): """ Represents a relationship to any model that is defined with a integer pk |