diff options
author | Rad <radost.waszkiewicz@gmail.com> | 2019-02-26 00:17:11 +0000 |
---|---|---|
committer | Rad <radost.waszkiewicz@gmail.com> | 2019-02-26 00:17:11 +0000 |
commit | a61ad6e7b850370b7aac3b1f8fbce1d68fecc3b1 (patch) | |
tree | db76179716f6f851f73f9d6e812ead791df75ce0 | |
parent | 83e489c425c40042d1b11895b995ed3261038526 (diff) | |
download | troggle-a61ad6e7b850370b7aac3b1f8fbce1d68fecc3b1.tar.gz troggle-a61ad6e7b850370b7aac3b1f8fbce1d68fecc3b1.tar.bz2 troggle-a61ad6e7b850370b7aac3b1f8fbce1d68fecc3b1.zip |
Messing with millenialcaves.html or similar
-rw-r--r-- | core/models.py | 2 | ||||
-rw-r--r-- | templates/millenialcaves.html | 2 | ||||
-rw-r--r-- | urls.py | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/core/models.py b/core/models.py index 32d4c68..817cf86 100644 --- a/core/models.py +++ b/core/models.py @@ -397,6 +397,8 @@ class Cave(TroggleModel): url = models.CharField(max_length=200,blank=True,null=True) filename = models.CharField(max_length=200) + fixedfield = "napis" + #class Meta: # unique_together = (("area", "kataster_number"), ("area", "unofficial_number")) # FIXME Kataster Areas and CUCC defined sub areas need seperating diff --git a/templates/millenialcaves.html b/templates/millenialcaves.html index 58ddad7..9d8df3c 100644 --- a/templates/millenialcaves.html +++ b/templates/millenialcaves.html @@ -13,7 +13,7 @@ <h3>Notable caves</h3> <ul> {% for cave in notablecaves %} - <li> <a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }}{% else %}{{cave.unofficial_number }}{%endif %} {{cave.official_name|safe}}</a> </li> + <li> <a href="{{ cave.fixedfield }}">{% if cave.kataster_number %}{{ cave.kataster_number }}{% else %}{{cave.unofficial_number }}{%endif %} {{cave.official_name|safe}}</a> </li> {% endfor %} </ul> @@ -15,6 +15,11 @@ admin.autodiscover() # type url probably means it's used. +# HOW DOES THIS WORK: +# url( <regular expression that matches the thing in the web browser>, +# <reference to python function in 'core' folder>, +# <name? not sure what does this actually do>) + actualurlpatterns = patterns('', url(r'^millenialcaves/?$', views_caves.millenialcaves, name="someothershit"), |