breakclass command to reset network access settings

This commit is contained in:
dekzter 2025-06-16 10:57:54 -04:00
parent db7ca1a0c8
commit 0b63b1286f

View file

@ -0,0 +1,13 @@
# your_app/management/commands/update_column.py
from django.core.management.base import BaseCommand
from core.models import CoreSettings, NETWORK_ACCESS
class Command(BaseCommand):
help = "Reset network access settings"
def handle(self, *args, **options):
setting = CoreSettings.objects.get(key=NETWORK_ACCESS)
setting.value = "{}"
setting.save()