forked from expo/troggle
[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:
parent
8916b460e1
commit
24dc2e3a20
@ -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):
|
||||||
|
@ -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'
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user