from mixer.backend.django import mixer
from django.core.management import BaseCommand
from mycourse.models import Course, Teacher, Lesson


def create_all():
    courses = mixer.cycle(20).blend(Course)
    teachers = mixer.cycle(20).blend(Teacher)
    lessions = mixer.cycle(20).blend(Lesson)


class Command(BaseCommand):

    def handle(self, *args, **options):
        create_all()

0aa1619e34ffa5afc266bb148141ece944be3103
<mask token>


class Command(BaseCommand):
    <mask token>

<mask token>


class Command(BaseCommand):

    def handle(self, *args, **options):
        create_all()

<mask token>


def create_all():
    courses = mixer.cycle(20).blend(Course)
    teachers = mixer.cycle(20).blend(Teacher)
    lessions = mixer.cycle(20).blend(Lesson)


class Command(BaseCommand):

    def handle(self, *args, **options):
        create_all()

from mixer.backend.django import mixer
from django.core.management import BaseCommand
from mycourse.models import Course, Teacher, Lesson


def create_all():
    courses = mixer.cycle(20).blend(Course)
    teachers = mixer.cycle(20).blend(Teacher)
    lessions = mixer.cycle(20).blend(Lesson)


class Command(BaseCommand):

    def handle(self, *args, **options):
        create_all()
