[extensions-web] Template names should be a bit more consistent.
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Template names should be a bit more consistent.
- Date: Tue, 27 Sep 2011 03:37:52 +0000 (UTC)
commit e78a991aad04f0d4fac090d5a484462358c400ff
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Sep 26 14:06:34 2011 -0400
Template names should be a bit more consistent.
.../{detail-edit.html => detail_edit.html} | 0
sweettooth/extensions/views.py | 4 ++--
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/detail-edit.html b/sweettooth/extensions/templates/extensions/detail_edit.html
similarity index 100%
rename from sweettooth/extensions/templates/extensions/detail-edit.html
rename to sweettooth/extensions/templates/extensions/detail_edit.html
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index e094094..0f041aa 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -34,7 +34,7 @@ class ExtensionLatestVersionView(DetailView):
def template_name(self):
# If the user can edit the model, let him do so.
if self.object.extension.user_has_access(self.request.user):
- return "extensions/detail-edit.html"
+ return "extensions/detail_edit.html"
return "extensions/detail.html"
def get(self, request, **kwargs):
@@ -68,7 +68,7 @@ class ExtensionVersionView(DetailView):
def template_name(self):
# If the user can edit the model, let him do so.
if self.object.extension.user_has_access(self.request.user):
- return "extensions/detail-edit.html"
+ return "extensions/detail_edit.html"
return "extensions/detail.html"
def get(self, request, **kwargs):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]