medicine-mts/appa/management/commands/set_tomorrow.py

13 lines
303 B
Python

import datetime
from django.core.management.base import BaseCommand
from appa.models import CallRequest
class Command(BaseCommand):
def handle(self, *args, **options):
tomorrow = datetime.date.today() + datetime.timedelta(days=1)
CallRequest.objects.all().update(date=tomorrow)