summaryrefslogtreecommitdiffstats
path: root/admin_tools/dashboard/management/commands/clear_dashboard_preferences.py
blob: 572ef72fe656fe71c18a70d6e4d1a2af14a33133 (plain)
1
2
3
4
5
6
7
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()