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}}:
diff --git a/rapids/templates/rapids/rapid_detail.html b/rapids/templates/rapids/question_detail.html
similarity index 100%
rename from rapids/templates/rapids/rapid_detail.html
rename to rapids/templates/rapids/question_detail.html
diff --git a/rapids/templates/rapids/rapid_display_block.html b/rapids/templates/rapids/question_display_block.html
similarity index 100%
rename from rapids/templates/rapids/rapid_display_block.html
rename to rapids/templates/rapids/question_display_block.html
diff --git a/rapids/urls.py b/rapids/urls.py
index 32acb33d..058e81a4 100755
--- a/rapids/urls.py
+++ b/rapids/urls.py
@@ -11,7 +11,7 @@ urlpatterns = [
path("question/", views.RapidView.as_view(), name="rapid_view"),
#path("unchecked/", views.unchecked_list, name="unchecked_list"),
#path("verified//", views.verified_detail, name="verified_detail"),
- path("question//", views.rapid_detail, name="rapid_detail"),
+ path("question//", views.question_detail, name="question_detail"),
path("question//split", views.rapid_split, name="rapid_split"),
path("question//clone", views.RapidClone.as_view(), name="rapid_clone"),
#path("verified/", views.verified, name="verified"),
diff --git a/rapids/views.py b/rapids/views.py
index ba4dab7e..787b2f9f 100755
--- a/rapids/views.py
+++ b/rapids/views.py
@@ -81,7 +81,7 @@ class AuthorOrCheckerRequiredMixin(object):
@login_required
-def rapid_detail(request, pk):
+def question_detail(request, pk):
rapid = get_object_or_404(Rapid, pk=pk)
# if request.user not in rapid.author.all():
@@ -89,7 +89,7 @@ def rapid_detail(request, pk):
# logging.debug(rapid.rapid_notes.first())
# logging.debug(rapid.subspecialty.first().name.all())
- return render(request, "rapids/rapid_detail.html", {"question": rapid})
+ return render(request, "rapids/question_detail.html", {"question": rapid})
@login_required
@@ -127,7 +127,7 @@ def rapid_split(request, pk):
# logging.debug(rapid.rapid_notes.first())
# logging.debug(rapid.subspecialty.first().name.all())
- return render(request, "rapids/rapid_detail.html", {"question": rapid})
+ return render(request, "rapids/question_detail.html", {"question": rapid})
@login_required
@@ -395,7 +395,7 @@ def rapid_scrap(request, pk):
rapid.scrapped = not rapid.scrapped
rapid.save()
- return HttpResponseRedirect(reverse("rapids:rapid_detail", args=(pk,)))
+ return HttpResponseRedirect(reverse("rapids:question_detail", args=(pk,)))
# @login_required