<filename>uptee/mod/management/commands/unlock_servers.py
from django.core.management.base import BaseCommand
from mod.models import Server


class Command(BaseCommand):
    help = 'Unlocks all servers.'

    def handle(self, *args, **options):
        for server in Server.objects.all():
            server.locked = False
            server.save()

<filename>uptee/mod/management/commands/unlock_servers.py
from django.core.management.base import BaseCommand
from mod.models import Server


class Command(BaseCommand):
    help = 'Unlocks all servers.'

    def handle(self, *args, **options):
        for server in Server.objects.all():
            server.locked = False
            server.save()
