- if not self.displayer:
- # TODO: may have to refactor this into an init if the key ordering is inconvenienc
- raise "Oh no! This gallery needs a displayer to set on the saved search."
-
- self.search = SavedSearch(author=self.displayer, string=value)
-
-
-# class UserPage(Entity):
-# owner = ManyToOne('User')
-# visible = Field(Boolean)
\ No newline at end of file
+ # if not self.displayer:
+ # # TODO: may have to refactor this into an init if the key ordering is inconvenienc
+ # raise "Oh no! This gallery needs a displayer to set on the saved search."
+
+ self.search = SavedSearch(author=getattr(self,"author",None), string=value)