mirror of https://github.com/zulip/zulip.git
10 lines
330 B
Python
10 lines
330 B
Python
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")
|