displaying galleries on your page works
[zzz-floof.git] / floof / model / users.py
index 0f05a52..d4a679a 100644 (file)
@@ -4,11 +4,18 @@
 #   Copyright (c) 2009 Scribblr
 #
 
-from elixir import Entity, Field, Unicode, belongs_to, has_many
+# from elixir import Entity, Field, Unicode, belongs_to, has_many
+from elixir import *
 
 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))