add management command to remove the dashboard preferences
This commit is contained in:
parent
b350755fe2
commit
9957759b4b
|
@ -0,0 +1,8 @@
|
|||
from django.core.management import BaseCommand
|
||||
|
||||
from admin_tools.dashboard.models import DashboardPreferences
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = """Clears dashboard preferences."""
|
||||
def handle(self, *args, **options):
|
||||
DashboardPreferences._default_manager.all().delete()
|
Loading…
Reference in New Issue