X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/ef69b26ffcf9185496775bcf73384ea3a5e5691c..0ede26497a9e018cbd68e2f4120dcb44a21f4715:/floof/model/users.py diff --git a/floof/model/users.py b/floof/model/users.py index 6b06048..5c9783e 100644 --- a/floof/model/users.py +++ b/floof/model/users.py @@ -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))