diff --git a/django_fulltext_search.py b/django_fulltext_search.py index 45649f8..941e9d1 100644 --- a/django_fulltext_search.py +++ b/django_fulltext_search.py @@ -3,7 +3,7 @@ __author__ = 'confirm IT solutions' __email__ = 'contactus@confirm.ch' -__version__ = '0.2.0' +__version__ = '0.2.1' class SearchQuerySet(models.query.QuerySet): @@ -72,7 +72,7 @@ def search(self, query, fields=None, mode=None): # Handle fields without a related model. else: table = meta.db_table - column = meta.get_field(field, many_to_many=False).column + column = meta.get_field(field).column # Add field with `table`.`column` style to columns set. columns.add('{}.{}'.format(quote_name(table), quote_name(column))) diff --git a/setup.py b/setup.py index e5c7ac3..7f387f0 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ except ImportError: from distutils.core import setup -version = "0.2.0" +version = "0.2.1" if sys.argv[-1] == 'publish': try: