mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-01-18 00:42:38 +00:00
[svn r8256] Fixing what I broke.
This commit is contained in:
parent
40e47f368b
commit
292985f46f
@ -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):
|
||||
|
@ -77,6 +77,8 @@ INSTALLED_APPS = (
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.contrib.redirects',
|
||||
'photologue',
|
||||
'troggle.reversion',
|
||||
'troggle.registration',
|
||||
'troggle.profiles',
|
||||
'troggle.expo'
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user