some nice mixins for tags, ratings, relations
[zzz-floof.git] / floof / model / search.py
index 01d45a2..fb86f35 100644 (file)
@@ -1,17 +1,20 @@
 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):
+        # This caused some cyclic dependencies when I tried importing it
+        # at the module level.  I wonder why that is...
+        from floof.lib.search import do_search
         return do_search(self.string)