mirror of https://github.com/zulip/zulip.git
12 lines
370 B
Python
12 lines
370 B
Python
from __future__ import absolute_import
|
|
|
|
from django.core.management.base import NoArgsCommand
|
|
from zephyr.models import clear_database
|
|
|
|
class Command(NoArgsCommand):
|
|
help = "Clear only tables we change: messages, accounts + sessions"
|
|
|
|
def handle_noargs(self, **options):
|
|
clear_database()
|
|
self.stdout.write("Successfully cleared the database.\n")
|