django-extensions/django-extensions — pull request #219 by alfredo (2012-07-05 10:30:30+00:00)
Title: Bugfix: Escaped database name for MySQL.

MySQL will complain if the database name contain an special character such as dash if it is not escaped.

mysql> CREATE DATABASE my-db;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-db' at line 1
mysql> CREATE DATABASE `my-db`;
Query OK, 1 row affected (0.00 sec)