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: 00dani
GPG Key ID: 5A5D2D1AFF12EEC5
1 changed files with 1 additions and 1 deletions

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}