mirror of
https://github.com/Hopiu/django-watson.git
synced 2026-03-16 22:00:22 +00:00
fixing NoArgs DeprecationWarning
This commit is contained in:
parent
552f09f7eb
commit
7769423b8b
3 changed files with 6 additions and 6 deletions
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.core.management.base import NoArgsCommand
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from watson.search import get_backend
|
||||
|
||||
|
||||
class Command(NoArgsCommand):
|
||||
class Command(BaseCommand):
|
||||
|
||||
help = "Creates the database indices needed by django-watson."
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
"""Exposed the watson.get_registered_models() function as management command for debugging purpose. """
|
||||
|
||||
from django.core.management.base import NoArgsCommand
|
||||
from django.core.management.base import BaseCommand
|
||||
from watson import search as watson
|
||||
|
||||
class Command(NoArgsCommand):
|
||||
class Command(BaseCommand):
|
||||
|
||||
help = "List all registed models by django-watson."
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.core.management.base import NoArgsCommand
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from watson.search import get_backend
|
||||
|
||||
|
||||
class Command(NoArgsCommand):
|
||||
class Command(BaseCommand):
|
||||
|
||||
help = "Destroys the database indices needed by django-watson."
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue