<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -31,6 +31,7 @@ class Post(models.Model):
     active = models.BooleanField(default=False)
     create_date = models.DateTimeField(_(&quot;created&quot;), default=datetime.now)
     pub_date = models.DateTimeField(_(&quot;published&quot;), default=datetime.now)
+    enable_comments = models.BooleanField(default=True)
     tags = TagField()
     
     objects = PostManager()
@@ -56,6 +57,7 @@ class Post(models.Model):
 class PostModerator(CommentModerator):
     akismet = True
     email_notification = True
+    enable_field = &quot;enable_comments&quot;
     
     def email(self, comment, content_object):
         &quot;&quot;&quot;</diff>
      <filename>apps/blog/models.py</filename>
    </modified>
    <modified>
      <diff>@@ -11,6 +11,7 @@
     {{ post|to_html }}
 &lt;/div&gt;
 
+{% if post.enable_comments %}
 &lt;hr /&gt;
 
 {% load comments %}
@@ -42,6 +43,7 @@
 {% endif %}
 &lt;h2&gt;{% trans &quot;Add Your Comment&quot; %}&lt;/h2&gt;
 {% render_comment_form for post %}
+{% endif %}
 {% endblock %}
 
 {% block sr %}</diff>
      <filename>themes/oebfare/templates/blog/post_detail.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bc1ff087fe8fb7ff161d87502f4f4ba224e8f5f9</id>
    </parent>
  </parents>
  <author>
    <name>Brian Rosner</name>
    <email>brosner@gmail.com</email>
  </author>
  <url>http://github.com/brosner/oebfare/commit/8ff6a7e07a0fc5a8e806a86a73b98a0e2d9ff65b</url>
  <id>8ff6a7e07a0fc5a8e806a86a73b98a0e2d9ff65b</id>
  <committed-date>2009-04-03T18:49:56-07:00</committed-date>
  <authored-date>2009-04-03T18:49:56-07:00</authored-date>
  <message>Allow comments to be turned off.</message>
  <tree>15e68d0f617efb5ee11a4bbf0d08e745e5ad5194</tree>
  <committer>
    <name>Brian Rosner</name>
    <email>brosner@gmail.com</email>
  </committer>
</commit>
