# your_app/management/commands/deactivate_expired_users.py
from django.core.management.base import BaseCommand
from accounts.models import Customers


class Command(BaseCommand):
    help = 'Deactivate users whose valid up to date has passed'

    def handle(self, *args, **kwargs):
        Customers.deactivate_expired_users()
        self.stdout.write(self.style.SUCCESS('Successfully deactivated expired users'))
