Use a slightly simpler way of identifying on_home kinds, which the ORM seems to like better

This commit is contained in:
Danielle McLean 2017-11-13 08:56:20 +11:00
parent adb302ebe3
commit cedae16456
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -64,6 +64,6 @@ Repost = Entry(
)
all = (Note, Article, Photo, Reply, Like, Repost)
on_home = (k.id for k in all if k.on_home)
on_home = {k.id for k in all if k.on_home}
from_id = {k.id: k for k in all}
from_plural = {k.plural: k for k in all}