diff --git a/rapids/models.py b/rapids/models.py index b844bb7c..894eac85 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -175,7 +175,7 @@ class Rapid(models.Model): def get_absolute_url(self): - return reverse('rapids:rapid_detail', kwargs={'pk': self.pk}) + return reverse('rapids:question_detail', kwargs={'pk': self.pk}) def get_authors(self): """Returns a comma seperated text list of authors""" @@ -317,7 +317,7 @@ class Note(models.Model): def get_absolute_url(self): self.pk = self.rapid_id - return reverse('rapids:rapid_detail', kwargs={'pk': self.pk}) + return reverse('rapids:question_detail', kwargs={'pk': self.pk}) def __str__(self): return "{} [{}] {}".format(self.rapid, self.author, self.created_on) diff --git a/rapids/tables.py b/rapids/tables.py index 622496b2..e111bb6d 100755 --- a/rapids/tables.py +++ b/rapids/tables.py @@ -30,7 +30,7 @@ class RapidTable(tables.Table): text='Edit', args=[A('pk')], orderable=False) - view = tables.LinkColumn('rapids:rapid_detail', + view = tables.LinkColumn('rapids:question_detail', text='View', args=[A('pk')], orderable=False) diff --git a/rapids/templates/rapids/category_detail.html b/rapids/templates/rapids/category_detail.html index 0d8e840e..8205f85a 100755 --- a/rapids/templates/rapids/category_detail.html +++ b/rapids/templates/rapids/category_detail.html @@ -4,7 +4,7 @@ {{category}}: