From e655d0ecf89c6a21aed9fa50db451aa5e5f1c310 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 8 Sep 2012 17:43:32 +0200 Subject: [PATCH] use new under_score ox api --- itf/app/models.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/itf/app/models.py b/itf/app/models.py index 1f0a509..b805b50 100755 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -1,7 +1,7 @@ from django.db import models import operator from django.db.models import Q -from ox.text import smartSplit +import ox from ox.django.fields import DictField from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.template.loader import render_to_string @@ -14,7 +14,7 @@ import datetime def splitSearch(string): ret = [] - for s in smartSplit(string): + for s in ox.smart_split(string): word = s.replace("'", "").replace('"', '') ret.append(word) return ret diff --git a/requirements.txt b/requirements.txt index 99ae8ca..ce4cf6b 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ Django==1.3 -ox +ox>=2.1.0 -e bzr+http://firefogg.org/dev/python-firefogg/#egg=python-firefogg -e bzr+http://firefogg.org/dev/django_firefogg/#egg=django_firefogg