[svn r8256] Fixing what I broke.

This commit is contained in:
aaron 2009-02-23 14:05:59 +01:00
parent 40e47f368b
commit 292985f46f
3 changed files with 5 additions and 3 deletions

View File

@ -305,7 +305,7 @@ class Cave(models.Model):
href = self.unofficial_number
else:
href = official_name.lower()
return settings.URL_ROOT + '/cave/' + self.href + '/'
return settings.URL_ROOT + '/cave/' + href + '/'
def __unicode__(self):

View File

@ -77,6 +77,8 @@ INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.redirects',
'photologue',
'troggle.reversion',
'troggle.registration',
'troggle.profiles',
'troggle.expo'

View File

@ -8,14 +8,14 @@
<h3>Notable caves</h3>
<ul>
{% for cave in notablecaves %}
<li> <a href="{{ cave.get_absolute_url }}">{{cave.official_name|wiki_to_html_short}} ({{cave.href}})</a> </li>
<li> <a href="{{ cave.get_absolute_url }}">{{cave.official_name|wiki_to_html_short}} ({{cave}})</a> </li>
{% endfor %}
</ul>
<h3>All caves</h3>
<ul>
{% for cave in caves %}
<li> <a href="{{ cave.get_absolute_url }}">{{cave.official_name|wiki_to_html_short}} ({{cave.href}})</a> </li>
<li> <a href="{{ cave.get_absolute_url }}">{{cave.official_name|wiki_to_html_short}} ({{cave}})</a> </li>
{% endfor %}
</ul>