mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-10 22:03:09 +00:00
16 lines
476 B
Python
16 lines
476 B
Python
from django.core.management.base import BaseCommand
|
|
|
|
from fobi.tests.helpers import (
|
|
get_or_create_admin_user, create_form_with_entries
|
|
)
|
|
|
|
class Command(BaseCommand):
|
|
def handle(self, *args, **options):
|
|
"""
|
|
Creates test data to fill the dashboard with.
|
|
"""
|
|
try:
|
|
user = get_or_create_admin_user()
|
|
create_form_with_entries(user, create_entries_if_form_exist=False)
|
|
except Exception as e:
|
|
pass
|