mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-10-31 22:19:00 +00:00
Merge branch 'main' into production
This commit is contained in:
commit
004a3e5e56
1 changed files with 2 additions and 2 deletions
|
@ -16,5 +16,5 @@ from .import_job import ImportJob, ImportItem
|
|||
from .site import SiteSettings, SiteInvite, PasswordReset
|
||||
|
||||
cls_members = inspect.getmembers(sys.modules[__name__], inspect.isclass)
|
||||
activity_models = {c[0]: c[1] for c in cls_members \
|
||||
if hasattr(c[1], 'activity_serializer')}
|
||||
activity_models = {c[1].activity_serializer.__name__: c[0] \
|
||||
for c in cls_members if hasattr(c[1], 'activity_serializer')}
|
||||
|
|
Loading…
Reference in a new issue