X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/ee952326340b2251b42db34f4823b0495338be86..a6d7a53b0cc7a8f8629e8e1272a56d3c51179317:/floof/model/search.py diff --git a/floof/model/search.py b/floof/model/search.py index 01d45a2..f03de51 100644 --- a/floof/model/search.py +++ b/floof/model/search.py @@ -1,19 +1,15 @@ from elixir import * # from users import User -from floof.lib.search import do_search class SavedSearch(Entity): string = Field(Unicode) # I tried calling this query, but it broke elixir author = ManyToOne('User') + fork = ManyToOne("SavedSearch") def __unicode__(self): return self.string - @property - def results(self): - return do_search(self.string) - class GalleryWidget(Entity): @@ -28,7 +24,7 @@ class GalleryWidget(Entity): @property def string(self): - return self.search + return self.search.string @string.setter def string(self, value):