2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 22:17:06 +00:00

[svn] full checkin. animations disabled, sorry

This commit is contained in:
goatchurch
2009-07-27 13:43:43 +01:00
parent 694fe4b4d8
commit b135ab64e7
11 changed files with 255 additions and 173 deletions

View File

@@ -99,7 +99,7 @@ def href_to_wikilinks(matchobj):
object actually exists.
"""
res=CaveDescription.objects.filter(long_name__icontains=matchobj.groupdict()['text'])
if res[0]:
if res and res[0]:
return r'[[cavedescription:'+res[0].short_name+'|'+res[0].long_name+']]'
else:
return matchobj.group()