Skip to content

Commit

Permalink
Backquotes in SQL not compatible with all DBMS (e.g. postgres). Unquo…
Browse files Browse the repository at this point in the history
…ted appears standard -- http://docs.djangoproject.com/en/dev/topics/db/sql/

Signed-off-by: Patrick Lauber <patrick.lauber@divio.ch>
  • Loading branch information
DrMeers authored and Patrick Lauber committed Sep 22, 2009
1 parent 60d9a20 commit 80c5c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/signals.py
Expand Up @@ -126,7 +126,7 @@ def post_save_user(instance, raw, created, **kwargs):
# TODO: find a better way than an raw sql !!

cursor = connection.cursor()
query = "INSERT INTO `%s` (`user_ptr_id`, `created_by_id`) VALUES (%d, %d)" % (
query = "INSERT INTO %s (user_ptr_id, created_by_id) VALUES (%d, %d)" % (
PageUser._meta.db_table,
instance.pk,
creator.pk
Expand Down

0 comments on commit 80c5c38

Please sign in to comment.