forked from 0x2620/pandora
from __future__ import print_function
This commit is contained in:
parent
47d8d67c3d
commit
6b1ce30eb2
22 changed files with 109 additions and 81 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
from __future__ import print_function
|
||||
|
||||
from optparse import make_option
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
|
@ -27,7 +29,7 @@ class Command(BaseCommand):
|
|||
def create_index(index, table, key):
|
||||
sql = 'CREATE INDEX "%s" ON "%s" USING gin ("%s" gin_trgm_ops)' % (index, table, key)
|
||||
if options['debug']:
|
||||
print sql
|
||||
print(sql)
|
||||
cursor.execute(sql)
|
||||
|
||||
if settings.DB_GIN_TRGM:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue