displaying galleries on your page works
[zzz-floof.git] / floof / model / users.py
index 6b06048..d4a679a 100644 (file)
@@ -11,6 +11,11 @@ class User(Entity):
     name = Field(Unicode(20))
     uploads = OneToMany('Art')
     has_many('identity_urls', of_kind='IdentityURL')
+    searches = OneToMany('SavedSearch')
+    galleries = OneToMany('GalleryWidget')
+    
+    def __unicode__(self):
+        return self.name
 
 class IdentityURL(Entity):
     url = Field(Unicode(255))