if settings.USE_TZ is true substitute result of the function timezone.get_current_timezone for tzinfo, if not tzinfo is None.
tzinfo = timezone . get_current_timezone ( ) if settings . USE_TZ else None