def omniscient_datetime(*args):
 d = original_datetime(*args)
 if settings.USE_TZ:
  d = timezone.make_aware(d, timezone.utc)
 return d

def omniscient_datetime ( * args ) : d = original_datetime ( * args ) if settings . USE_TZ : d = timezone . make_aware ( d , timezone . utc ) return d
generating a datetime aware or naive depending of use_tz .