From 979f5901af8410ff138de0aa41013bfb193060d6 Mon Sep 17 00:00:00 2001
From: Bryan Newbold
Date: Tue, 23 Sep 2008 18:52:55 -0700
Subject: 1.0
---
bn_django/git_wiki/views.py | 5 +--
.../photos/templates/photos/photo_detail.html | 14 ++-----
bn_django/templates/comments/form.html | 36 -----------------
bn_django/templates/comments/free_preview.html | 46 ----------------------
bn_django/templates/comments/freeform.html | 10 -----
bn_django/templates/comments/posted.html | 13 ------
bn_django/templates/comments/preview.html | 46 ----------------------
bn_django/templates/newcomments_table | 16 +-------
bn_django/urls.py | 14 +++----
9 files changed, 14 insertions(+), 186 deletions(-)
delete mode 100644 bn_django/templates/comments/form.html
delete mode 100644 bn_django/templates/comments/free_preview.html
delete mode 100644 bn_django/templates/comments/freeform.html
delete mode 100644 bn_django/templates/comments/posted.html
delete mode 100644 bn_django/templates/comments/preview.html
diff --git a/bn_django/git_wiki/views.py b/bn_django/git_wiki/views.py
index 58d4194..f16ea84 100644
--- a/bn_django/git_wiki/views.py
+++ b/bn_django/git_wiki/views.py
@@ -7,7 +7,7 @@ import os, commands
from models import *
from settings import *
-from django.contrib.comments.models import Comment,FreeComment
+from django.contrib.comments.models import Comment
# Create your views here.
@@ -16,10 +16,9 @@ def frontpage(request):
t.update()
#TODO: doesn't display free comments unless there's a comment
lc = Comment.objects.filter(content_type__name="item").order_by('-submit_date')[:6]
- lfc = FreeComment.objects.filter(content_type__name="item").order_by('-submit_date')[:6]
return render_to_response('git_wiki/frontpage.html', \
dict(shortlog=shortlog(), tree=t,
- latest_comments=lc, latest_freecomments=lfc,
+ latest_comments=lc,
newitems=newest_items()))
def tree(request, reqslug, tree=None):
diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html
index 5d02710..1278bda 100644
--- a/bn_django/photos/templates/photos/photo_detail.html
+++ b/bn_django/photos/templates/photos/photo_detail.html
@@ -1,5 +1,6 @@
{% extends "photos/base.html" %}
{# {% load markup %} #}
+
{% load comments %}
{% block path %}
@@ -101,17 +102,10 @@ by {{ object.photographer }}.
{% endblock %}
{% block commentary %}
-