Merge branch 'main' into production

This commit is contained in:
Mouse Reeve 2020-11-04 14:13:59 -08:00
commit 004a3e5e56

View file

@ -16,5 +16,5 @@ from .import_job import ImportJob, ImportItem
from .site import SiteSettings, SiteInvite, PasswordReset from .site import SiteSettings, SiteInvite, PasswordReset
cls_members = inspect.getmembers(sys.modules[__name__], inspect.isclass) cls_members = inspect.getmembers(sys.modules[__name__], inspect.isclass)
activity_models = {c[0]: c[1] for c in cls_members \ activity_models = {c[1].activity_serializer.__name__: c[0] \
if hasattr(c[1], 'activity_serializer')} for c in cls_members if hasattr(c[1], 'activity_serializer')}