[extensions-web] comments: fixed reverse url
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] comments: fixed reverse url
- Date: Sun, 16 Dec 2018 19:28:42 +0000 (UTC)
commit fc8f7e6d56fd08cb14003c1c4dc003f965c9c41e
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sun Dec 16 23:26:54 2018 +0400
comments: fixed reverse url
sweettooth/errorreports/urls.py | 2 +-
sweettooth/extensions/templates/extensions/comments.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/errorreports/urls.py b/sweettooth/errorreports/urls.py
index d10655d..46fcb37 100644
--- a/sweettooth/errorreports/urls.py
+++ b/sweettooth/errorreports/urls.py
@@ -4,6 +4,6 @@ from django.conf.urls import url
from sweettooth.errorreports import views
urlpatterns = [
- url(r'^report/(?P<pk>\d+)', views.report_error),
+ url(r'^report/(?P<pk>\d+)', views.report_error, name='report_error'),
url(r'^view/(?P<pk>\d+)', views.view_error_report),
]
diff --git a/sweettooth/extensions/templates/extensions/comments.html
b/sweettooth/extensions/templates/extensions/comments.html
index 43088ba..7eaf815 100644
--- a/sweettooth/extensions/templates/extensions/comments.html
+++ b/sweettooth/extensions/templates/extensions/comments.html
@@ -5,7 +5,7 @@
Leave a…
<a class="btn btn-default" href="javascript:void 0" id="leave_comment">Comment</a>
<a class="btn btn-default" href="javascript:void 0" id="leave_rating">Rating</a>
- <a class="btn btn-default" href="{% url 'sweettooth.errorreports.views.report_error' pk=extension.pk
%}">Bug report</a>
+ <a class="btn btn-default" href="{% url 'report_error' pk=extension.pk %}">Bug report</a>
</div>
<div id="rating_form">
{% load comments %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]