def strip_tz(datetime): """Strip the timezone for USE_TZ=False""" return datetime.replace(tzinfo=None)