mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-09-27 14:00:21 +00:00
b3a519c082
This table will now track all actions taken on a report, like resolving it, re-opening it, suspending the reported user, et cetera, in addition to comments. When there are multiple admins, this change will make it easier to understand what actions have been taken by whom on a report.
48 lines
1.5 KiB
Python
48 lines
1.5 KiB
Python
""" bring all the models into the app namespace """
|
|
import inspect
|
|
import sys
|
|
|
|
from .book import Book, Work, Edition, BookDataModel
|
|
from .author import Author
|
|
from .link import Link, FileLink, LinkDomain
|
|
from .connector import Connector
|
|
|
|
from .shelf import Shelf, ShelfBook
|
|
from .list import List, ListItem
|
|
|
|
from .status import Status, GeneratedNote, Comment, Quotation
|
|
from .status import Review, ReviewRating
|
|
from .status import Boost
|
|
from .attachment import Image
|
|
from .favorite import Favorite
|
|
from .readthrough import ReadThrough, ProgressUpdate, ProgressMode
|
|
|
|
from .user import User, KeyPair
|
|
from .annual_goal import AnnualGoal
|
|
from .relationship import UserFollows, UserFollowRequest, UserBlocks
|
|
from .report import Report, ReportAction
|
|
from .federated_server import FederatedServer
|
|
|
|
from .group import Group, GroupMember, GroupMemberInvitation
|
|
|
|
from .import_job import ImportJob, ImportItem
|
|
|
|
from .site import SiteSettings, Theme, SiteInvite
|
|
from .site import PasswordReset, InviteRequest
|
|
from .announcement import Announcement
|
|
from .antispam import EmailBlocklist, IPBlocklist, AutoMod, automod_task
|
|
|
|
from .notification import Notification
|
|
|
|
from .hashtag import Hashtag
|
|
|
|
cls_members = inspect.getmembers(sys.modules[__name__], inspect.isclass)
|
|
activity_models = {
|
|
c[1].activity_serializer.__name__: c[1]
|
|
for c in cls_members
|
|
if hasattr(c[1], "activity_serializer")
|
|
}
|
|
|
|
status_models = [
|
|
c.__name__ for (_, c) in activity_models.items() if issubclass(c, Status)
|
|
]
|