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.
--
Ticket URL: <https://code.djangoproject.com/ticket/29778>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/29778#comment:1>
Comment (by Carlton Gibson):
[https://github.com/django/django/pull/10417 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/29778#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/29778#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"d1d5c97bc2821bf8c0f4b2d9c7ab16200845b494" d1d5c97b]:
{{{
#!CommitTicketReference repository=""
revision="d1d5c97bc2821bf8c0f4b2d9c7ab16200845b494"
Fixed #29778 -- Fixed quoting of unique index names.
Regression in 3b429c96736b8328c40e5d77282b0d30de563c3c.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29778#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"cdb8ee741d0bc72713baf6612e4218d44cfd3958" cdb8ee7]:
{{{
#!CommitTicketReference repository=""
revision="cdb8ee741d0bc72713baf6612e4218d44cfd3958"
[2.1.x] Fixed #29778 -- Fixed quoting of unique index names.
Regression in 3b429c96736b8328c40e5d77282b0d30de563c3c.
Backport of d1d5c97bc2821bf8c0f4b2d9c7ab16200845b494 from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29778#comment:5>