2020-02-11 23:17:21 +00:00
|
|
|
''' bring all the models into the app namespace '''
|
2020-09-17 20:02:52 +00:00
|
|
|
import inspect
|
|
|
|
import sys
|
|
|
|
|
2020-09-17 20:09:11 +00:00
|
|
|
from .book import Book, Work, Edition, Author
|
|
|
|
from .connector import Connector
|
|
|
|
from .relationship import UserFollows, UserFollowRequest, UserBlocks
|
2020-03-07 06:56:44 +00:00
|
|
|
from .shelf import Shelf, ShelfBook
|
2020-09-29 00:26:15 +00:00
|
|
|
from .status import Status, GeneratedStatus, Review, Comment, Quotation
|
2020-09-17 20:09:11 +00:00
|
|
|
from .status import Favorite, Boost, Notification, ReadThrough
|
|
|
|
from .tag import Tag
|
|
|
|
from .user import User
|
|
|
|
from .federated_server import FederatedServer
|
2020-09-17 20:02:52 +00:00
|
|
|
|
2020-04-21 14:09:21 +00:00
|
|
|
from .import_job import ImportJob, ImportItem
|
2020-10-02 20:32:19 +00:00
|
|
|
from .site import SiteSettings, SiteInvite, PasswordReset
|
2020-09-17 20:02:52 +00:00
|
|
|
|
|
|
|
cls_members = inspect.getmembers(sys.modules[__name__], inspect.isclass)
|
|
|
|
activity_models = {c[0]: c[1].activity_serializer for c in cls_members \
|
|
|
|
if hasattr(c[1], 'activity_serializer')}
|