From cedae16456a91e2531a09ab0555067c93edead8a Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 13 Nov 2017 08:56:20 +1100 Subject: [PATCH] Use a slightly simpler way of identifying on_home kinds, which the ORM seems to like better --- entries/kinds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entries/kinds.py b/entries/kinds.py index 315f358..a571f8c 100644 --- a/entries/kinds.py +++ b/entries/kinds.py @@ -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}