Permalink
Browse files

d'oh!

  • Loading branch information...
1 parent fc9ae06 commit 7d046999a0bd6145f97d5dd1f897f191079089be @shanel shanel committed Jul 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 control_panel/models/model.py
@@ -14,7 +14,7 @@ def __init__(self, kind=None, persistance=None, testing=False):
self.persistance = persistance
if not testing:
results, _ = self.persistance.exists(self.kind, self._trimmed())
- if results:
+ if not results:
self.persistance.create(self._trimmed())
def _trimmed(self):

0 comments on commit 7d04699

Please sign in to comment.