15 lines
318 B
Python
15 lines
318 B
Python
from django.core.management import BaseCommand
|
|
|
|
from newsteaser.factories import NewsTeaserFactory
|
|
from newsteaser.models import NewsTeaser
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
|
def handle(self, *args, **options):
|
|
NewsTeaser.objects.all().delete()
|
|
|
|
for index in range(9):
|
|
NewsTeaserFactory()
|
|
|