[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 href = self.unofficial_number
else: else:
href = official_name.lower() href = official_name.lower()
return settings.URL_ROOT + '/cave/' + self.href + '/' return settings.URL_ROOT + '/cave/' + href + '/'
def __unicode__(self): def __unicode__(self):

View File

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

View File

@@ -8,14 +8,14 @@
<h3>Notable caves</h3> <h3>Notable caves</h3>
<ul> <ul>
{% for cave in notablecaves %} {% 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 %} {% endfor %}
</ul> </ul>
<h3>All caves</h3> <h3>All caves</h3>
<ul> <ul>
{% for cave in caves %} {% 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 %} {% endfor %}
</ul> </ul>