13 lines
283 B
Python
13 lines
283 B
Python
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.db.models import Index
|
||
|
|
||
|
__all__ = ['GinIndex']
|
||
|
|
||
|
|
||
|
class GinIndex(Index):
|
||
|
suffix = 'gin'
|
||
|
|
||
|
def create_sql(self, model, schema_editor):
|
||
|
return super(GinIndex, self).create_sql(model, schema_editor, using=' USING gin')
|