﻿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
29778	Unique index cannot be created for db table, whose name should be quoted	Oleg	Oleg	"It is not possible to create unqiue indexes for tables, whose names should be quoted, for example `db_table = 'test-table' `.
ORM does not quote index name, so exception is raised:
>return Database.Cursor.execute(self, query, params)
>E  django.db.utils.OperationalError: near ""-"": syntax error

This was supported in version 1.11 and should be work according to documentation:

> If your database table name is an SQL reserved word, or contains characters that aren’t allowed in Python variable names – notably, the hyphen – that’s OK. Django quotes column and table names behind the scenes."	Bug	closed	Database layer (models, ORM)	2.1	Normal	fixed			Ready for checkin	1	0	0	0	0	0
