Use a slightly simpler way of identifying on_home kinds, which the ORM seems to like better
This commit is contained in:
parent
adb302ebe3
commit
cedae16456
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue