projects
/
zzz-floof.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test suite runs and passes!
[zzz-floof.git]
/
floof
/
lib
/
dbhelpers.py
diff --git
a/floof/lib/dbhelpers.py
b/floof/lib/dbhelpers.py
index
0da968b
..
23fd3b4
100644
(file)
--- a/
floof/lib/dbhelpers.py
+++ b/
floof/lib/dbhelpers.py
@@
-3,7
+3,7
@@
def find_or_create(model, **kwargs):
if not instance:
instance = model(**kwargs)
return instance
if not instance:
instance = model(**kwargs)
return instance
-
+
def update_or_create(model, get_by, update_with):
instance = model.get_by(**get_by)
if instance:
def update_or_create(model, get_by, update_with):
instance = model.get_by(**get_by)
if instance: