shaped up routing: enabled explicit mode, and created some named routes
[zzz-floof.git] / floof / model / users.py
index 0f05a52..5c9783e 100644 (file)
@@ -4,11 +4,17 @@
 #   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')
+    
+    def __unicode__(self):
+        return self.name
 
 class IdentityURL(Entity):
     url = Field(Unicode(255))