projects
/
zzz-floof.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Searching for one tag works. Two tags acts like or and returns multiple copies.
[zzz-floof.git]
/
floof
/
lib
/
dbhelpers.py
1
def
find_or_create
(
model
, **
kwargs
):
2
instance
=
model
.
get_by
(**
kwargs
)
3
if not
instance
:
4
instance
=
model
(**
kwargs
)
5
return
instance