summaryrefslogtreecommitdiff
path: root/sublab_project/news/models.py
diff options
context:
space:
mode:
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})