add management command to remove the dashboard preferences

This commit is contained in:
Artur Barseghyan 2014-07-29 01:32:35 +02:00
parent b350755fe2
commit 9957759b4b
1 changed files with 8 additions and 0 deletions

View File

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