Skip to content

Commit 8301e19

Browse files
committed
Fix deprecation warnings in Django 1.6.X
Options.model_name was introduced in Django 1.6 together with a deprecation warning: django/django@ec469ad
1 parent ab00b37 commit 8301e19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

haystack/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _lookup_identifier_method():
6565
get_identifier = _lookup_identifier_method()
6666

6767

68-
if django.VERSION >= (1, 7):
68+
if django.VERSION >= (1, 6):
6969
def get_model_ct_tuple(model):
7070
return (model._meta.app_label, model._meta.model_name)
7171
else:

0 commit comments

Comments
 (0)