summaryrefslogtreecommitdiff
path: root/sublab_project/news/models.py
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2011-12-30 01:42:04 +0100
committerChristian Franke <nobody@nowhere.ws>2011-12-30 01:42:35 +0100
commit27300433922788ed6630ae61608517780385f876 (patch)
tree5043d11212b5b1839195c25915056bcc6822c6b8 /sublab_project/news/models.py
parentf63274bb0c00eda68b6e2fae564c4da8ae55b84d (diff)
add detailed newspost view, fixup base template
Diffstat (limited to 'sublab_project/news/models.py')
-rw-r--r--sublab_project/news/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sublab_project/news/models.py b/sublab_project/news/models.py
index 72074a0..cd98248 100644
--- a/sublab_project/news/models.py
+++ b/sublab_project/news/models.py
@@ -38,4 +38,4 @@ class News(models.Model):
@models.permalink
def get_absolute_url(self):
- return ('news_detail', (), {'id': self.id})
+ return ('news_detail', (), {'slug': self.slug})