# 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))