# HG changeset patch # User Brian Neal # Date 1448520453 21600 # Node ID 28d68f97cb26e642732d249c389b8c0f6d22312a # Parent c6c3ba5cf6eb549d50bb7f43167c5be9b7c7d62e Don't use models.permalink. diff -r c6c3ba5cf6eb -r 28d68f97cb26 news/models.py --- a/news/models.py Thu Nov 26 00:27:42 2015 -0600 +++ b/news/models.py Thu Nov 26 00:47:33 2015 -0600 @@ -3,6 +3,7 @@ """ import datetime +from django.core.urlresolvers import reverse from django.db import models from django.contrib.auth.models import User from tagging.fields import TagField @@ -97,9 +98,8 @@ db_index=False, help_text="Forum topic used for comments") - @models.permalink def get_absolute_url(self): - return ('news.views.story', [str(self.id)]) + return reverse('news-story', args=[str(self.id)]) def __unicode__(self): return self.title