summaryrefslogtreecommitdiffstats
path: root/admin_tools/dashboard/management/commands/clear_dashboard_preferences.py
diff options
context:
space:
mode:
Diffstat (limited to 'admin_tools/dashboard/management/commands/clear_dashboard_preferences.py')
-rw-r--r--admin_tools/dashboard/management/commands/clear_dashboard_preferences.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/admin_tools/dashboard/management/commands/clear_dashboard_preferences.py b/admin_tools/dashboard/management/commands/clear_dashboard_preferences.py
new file mode 100644
index 0000000..572ef72
--- /dev/null
+++ b/admin_tools/dashboard/management/commands/clear_dashboard_preferences.py
@@ -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()