[svn] Fixing what I broke.

Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8256 by aaron @ 2/23/2009 1:05 PM
This commit is contained in:
substantialnoninfringinguser 2009-05-13 05:55:40 +01:00
parent 8916b460e1
commit 24dc2e3a20
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>