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()