def as_weeks(self):
        if self.unit == DELIVERY_TIME_UNIT_HOURS:
            min = self.min / (24 * 7)
            max = self.max / (24 * 7)
        elif self.unit == DELIVERY_TIME_UNIT_DAYS:
            max = self.max / 7
            min = self.min / 7
        elif self.unit == DELIVERY_TIME_UNIT_WEEKS:
            max = self.max
            min = self.min
        elif self.unit == DELIVERY_TIME_UNIT_MONTHS:
            max = self.max * 4
            min = self.min * 4

        return self._get_instance(min=min, max=max, unit=DELIVERY_TIME_UNIT_WEEKS)
Returns the delivery time in weeks.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/DeliveryTimeBase.as_weeks