Permalink
Browse files

Make 'default' a kwarg in WhooshManager.__init__() because for compat…

…ibility with super.__init__()
  • Loading branch information...
1 parent ba82ace commit 4acde16a501a98599ba553dad50cb4f6ae6b71d2 @JoeGermuska committed May 9, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_whoosh/managers.py
View
4 django_whoosh/managers.py
@@ -43,8 +43,8 @@
}
class WhooshManager(models.Manager):
- def __init__(self, default, *args, **kwargs):
- self.default = default
+ def __init__(self, *args, **kwargs):
+ self.default = kwargs.pop("default",None)
self.parser = None
self.fields = kwargs.pop('fields', []) + ['id']
self.real_time = kwargs.pop('real_time', True)

0 comments on commit 4acde16

Please sign in to comment.