saved searches is going awesome. Partial work on adding them as galleries
[zzz-floof.git] / floof / model / users.py
index 6b06048..5c9783e 100644 (file)
@@ -11,6 +11,10 @@ class User(Entity):
     name = Field(Unicode(20))
     uploads = OneToMany('Art')
     has_many('identity_urls', of_kind='IdentityURL')
+    searches = OneToMany('SavedSearch')
+    
+    def __unicode__(self):
+        return self.name
 
 class IdentityURL(Entity):
     url = Field(Unicode(255))