from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from django.utils.crypto import get_random_string
from ... import models


class Command(BaseCommand):
    help = 'Activate Player Profile permissions'

    def handle(self, *args, **kwargs):
        for profile in models.Document.objects.all():
            print('pk=', profile.pk)
            profile.save(set_orientation=True)

10e67ab95e9e93b6311681cff0ecc508b85ac594
<mask token>

<mask token>


class Command(BaseCommand):
    <mask token>
    <mask token>

<mask token>


class Command(BaseCommand):
    <mask token>

    def handle(self, *args, **kwargs):
        for profile in models.Document.objects.all():
            print('pk=', profile.pk)
            profile.save(set_orientation=True)

<mask token>


class Command(BaseCommand):
    help = 'Activate Player Profile permissions'

    def handle(self, *args, **kwargs):
        for profile in models.Document.objects.all():
            print('pk=', profile.pk)
            profile.save(set_orientation=True)

from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from django.utils.crypto import get_random_string
from ... import models


class Command(BaseCommand):
    help = 'Activate Player Profile permissions'

    def handle(self, *args, **kwargs):
        for profile in models.Document.objects.all():
            print('pk=', profile.pk)
            profile.save(set_orientation=True)
