projects
/
zzz-floof.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Searching for one tag works. Two tags acts like or and returns multiple copies.
[zzz-floof.git]
/
floof
/
model
/
art.py
diff --git
a/floof/model/art.py
b/floof/model/art.py
index
66cbe0b
..
ef50dcd
100644
(file)
--- a/
floof/model/art.py
+++ b/
floof/model/art.py
@@
-10,11
+10,9
@@
from elixir import *
from pylons import config
from floof.lib.file_storage import get_path, save_file
from pylons import config
from floof.lib.file_storage import get_path, save_file
-
from floof.lib.dbhelpers import find_or_create
from floof.lib.dbhelpers import find_or_create
-
class Art(Entity):
title = Field(Unicode(120))
original_filename = Field(Unicode(120))
class Art(Entity):
title = Field(Unicode(120))
original_filename = Field(Unicode(120))
@@
-59,7
+57,7
@@
class Art(Entity):
class Tag(Entity):
class Tag(Entity):
- # look into how ondelete works.
It
just sets a database property.
+ # look into how ondelete works.
This
just sets a database property.
art = ManyToOne('Art', ondelete='cascade')
tagger = ManyToOne('User')
tagtext = ManyToOne('TagText')
art = ManyToOne('Art', ondelete='cascade')
tagger = ManyToOne('User')
tagtext = ManyToOne('TagText')