forked from 0x2620/pandora
cleanup use of python-ox api
This commit is contained in:
parent
5aac6ebe22
commit
69b1e6c7b2
10 changed files with 25 additions and 25 deletions
|
|
@ -31,7 +31,7 @@ def addEvent(request):
|
|||
exists = False
|
||||
names = [data['name']] + data.get('alternativeNames', [])
|
||||
for name in names:
|
||||
name = ox.decodeHtml(name)
|
||||
name = ox.decode_html(name)
|
||||
if models.Event.objects.filter(defined=True,
|
||||
name_find__icontains=u'|%s|'%name).count() != 0:
|
||||
exists = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue