git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bbcc190
)
Django's delete method does not accept unknown keywords
author
Sapan Bhatia
<gwsapan@gmail.com>
Tue, 22 Jul 2014 05:21:05 +0000
(
01:21
-0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Wed, 23 Jul 2014 20:25:15 +0000
(16:25 -0400)
planetstack/core/models/plcorebase.py
patch
|
blob
|
history
diff --git
a/planetstack/core/models/plcorebase.py
b/planetstack/core/models/plcorebase.py
index
289bd49
..
446245b
100644
(file)
--- a/
planetstack/core/models/plcorebase.py
+++ b/
planetstack/core/models/plcorebase.py
@@
-87,6
+87,7
@@
class PlCoreBase(models.Model):
pass
if (purge):
+ del kwds['purge']
super(PlCoreBase, self).delete(*args, **kwds)
else:
self.deleted = True