scoursen/django-softdelete — Issue #3: The 'using' argument should be a string, not a dictionary
Author: jason0x43
Created: 2012-01-02 20:39:06+00:00
State: open

Unless I'm missing something, the 'using' argument to Model.delete() should be the database dictionary alias, not the dictionary itself. I noticed this because I was having problems with hard deletion not working, and that turned out to be the problem. It occurs several times in softdelete/models.py, for instance:

```diff
@ -43,7 +43,7 @@ class SoftDeleteQuerySet(query.QuerySet):
qs.__class__ = SoftDeleteQuerySet
return qs

- def delete(self, using=settings.DATABASES['default'], *args, **kwargs):
+ def delete(self, using='default', *args, **kwargs):
if not len(self):
return
cs = kwargs.get('changeset')```