I am trying to give the command such a way when blacklist is TRUE and active will FALSE,
But I am getting all the Blacklist TRUE and Active is FALSE.
from django.core.management import BaseCommand
from wm_data_collection.models import roses
class Command(BaseCommand):
help = "Blacklist_TRUE then Active_FALSE."
def handle(self, *args, **options):
roses.objects.filter(active=False).update(blacklist=True)