id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 16111,Invalid SQL string representation from some queries,German M. Bravo,nobody,"A query like this: `str(User.objects.filter(username='admin').query)` produces invalid sql like this (note the missing ' around 'admin'): `SELECT ... FROM ""auth_user"" WHERE ""auth_user"".""username"" = admin` The query does produces correct results nonetheless, the problem is only in the string representation... but it's annoying for debugging queries.",Bug,closed,"Database layer (models, ORM)",1.3,Normal,invalid,,German M. Bravo,Unreviewed,0,0,0,0,0,0