use new under_score ox api

This commit is contained in:
j 2012-09-08 17:43:32 +02:00
parent caad5d4474
commit e655d0ecf8
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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