from django.core.management.base import BaseCommand

from ...models import Profile


class Command(BaseCommand):
    help = 'Saves each profile to generate display name field'

    def handle(self, *args, **kwargs):
        for profile in Profile.objects.all():
            profile.save()



