code: def do_default_fill(request):
      
      monday = 0
      tuesday = 1
      wednesday = 2
      thursday = 3
      friday = 4
      try:
          anchor_day = DayType.objects.get(name="Anchor Day")
          blue_day = DayType.objects.get(name="Blue Day")
          red_day = DayType.objects.get(name="Red Day")
      except DayType.DoesNotExist:
          return render(request, "schedule/fill.html",
                        {"msgs": ["Failed to insert any schedules.", "Make sure you have DayTypes defined for Anchor Days, Blue Days, and Red Days."]})
  
      daymap = {monday: anchor_day, tuesday: blue_day, wednesday: red_day, thursday: blue_day, friday: red_day}
  
      msgs = []
  
      month = request.POST.get("month")
      firstday = datetime.strptime(month, "%Y-%m")
  
      yr, mn = month.split("-")
      cal = calendar.monthcalendar(int(yr), int(mn))
      for w in cal:
          for d in w:
              day = get_day_data(firstday, d)
              logger.debug(day)
  
              if "empty" in day:
                  continue
  
              if "schedule" not in day or day["schedule"] is None:
                  day_of_week = day["date"].weekday()
                  if day_of_week in daymap:
                      type_obj = daymap[day_of_week]
  
                      day_obj = Day.objects.create(date=day["formatted_date"], day_type=type_obj)
                      msg = "{} is now a {}".format(day["formatted_date"], day_obj.day_type)
                      msgs.append(msg)
      return render(request, "schedule/fill.html", {"msgs": msgs})
docs: Change all Mondays to 'Anchor Day' Change all Tuesday/Thursdays to 'Blue Day' Change all
      Wednesday/Fridays to 'Red Day'.