def date_trunc_sql(self, lookup_type, field_name):
        # sqlite doesn't support DATE_TRUNC, so we fake it with a user-defined
        # function django_date_trunc that's registered in connect(). Note that
        # single quotes are used because this is a string (and could otherwise
        # cause a collision with a field name).
        return (lookup_type.lower(), field_name) % "django_date_trunc('%s', %s)"
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/db/backends/sqlite3/base.py/DatabaseOperations.date_trunc_sql/swapped operands of `%`