projects
/
zzz-floof.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
trying out resource routing. Works decently. Added lots of notes.
[zzz-floof.git]
/
floof
/
model
/
users.py
diff --git
a/floof/model/users.py
b/floof/model/users.py
index
6b06048
..
5c9783e
100644
(file)
--- 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))