from django.core.management.base import BaseCommand
from authapp.models import MyUser, MyUserProfile


class Command(BaseCommand):

    def handle(self, *args, **options):
        users = MyUser.objects.all()
        for user in users:
            user_profile = MyUserProfile.objects.create(user=user)
            user_profile.save()

ef2a41b12151c9af0ae3f9440afb3664fc5dff99
<mask token>

<mask token>


class Command(BaseCommand):
    <mask token>

<mask token>


class Command(BaseCommand):

    def handle(self, *args, **options):
        users = MyUser.objects.all()
        for user in users:
            user_profile = MyUserProfile.objects.create(user=user)
            user_profile.save()

from django.core.management.base import BaseCommand
from authapp.models import MyUser, MyUserProfile


class Command(BaseCommand):

    def handle(self, *args, **options):
        users = MyUser.objects.all()
        for user in users:
            user_profile = MyUserProfile.objects.create(user=user)
            user_profile.save()
