<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -57,6 +57,18 @@ class Comment(search.SearchableModel):
   def username(self):
     return self.user.nickname().split(&quot;@&quot;)[0]
       
+  def radar_exists(self):
+    try:
+      return self.radar != None 
+    except db.Error:
+      return False
+
+  def radarnumber(self):
+    return self.radar_exists() and self.radar.number or &quot;Deleted&quot;
+
+  def radartitle(self):
+    return self.radar_exists() and self.radar.title or &quot;Deleted&quot;
+
   def replies(self):
     return Comment.gql(&quot;WHERE is_reply_to = :1&quot;, self)
   </diff>
      <filename>models.py</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
 &lt;div class=&quot;commentWithReplies&quot;&gt;
   &lt;div class=&quot;comment&quot;&gt;
     &lt;a class=&quot;keyref&quot; name=&quot;{{comment.key}}&quot;&gt;&lt;/a&gt;
-    &lt;h4&gt;&lt;a href=&quot;/{{ comment.radar.number }}#{{ comment.key }}&quot;&gt;Open Radar {{ comment.radar.number }}: {{ comment.radar.title }}&lt;/a&gt;&lt;/h4&gt;
+    &lt;h4&gt;&lt;a href=&quot;/{{ comment.radarnumber }}#{{ comment.key }}&quot;&gt;Open Radar {{ comment.radarnumber }}: {{ comment.radartitle }}&lt;/a&gt;&lt;/h4&gt;
     {% if comment.subject %}
     &lt;h3&gt;{{ comment.subject|escape }}&lt;/h3&gt;
     {% endif %}
@@ -17,7 +17,7 @@
       {{ comment.html_body }}
     &lt;/div&gt;
     &lt;div class=&quot;meta&quot;&gt;
-      By &lt;strong&gt;{{ comment.username }}&lt;/strong&gt; at &lt;a href=&quot;/{{ comment.radar.number }}#{{ comment.key }}&quot;&gt;{{ comment.posted_at }}&lt;/a&gt;
+      By &lt;strong&gt;{{ comment.username }}&lt;/strong&gt; at &lt;a href=&quot;/{{ comment.radarnumber }}#{{ comment.key }}&quot;&gt;{{ comment.posted_at }}&lt;/a&gt;
     &lt;/div&gt;
   &lt;/div&gt;
 &lt;/div&gt;</diff>
      <filename>templates/comments-recent.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>efd1bbcde9958db33a31320d301301631e68f012</id>
    </parent>
  </parents>
  <author>
    <name>Tim Burks</name>
    <email>tim@neontology.com</email>
  </author>
  <url>http://github.com/timburks/openradar/commit/ad8ad465eb602549298796254d4279804b87d3fc</url>
  <id>ad8ad465eb602549298796254d4279804b87d3fc</id>
  <committed-date>2009-01-15T20:38:39-08:00</committed-date>
  <authored-date>2009-01-15T20:38:39-08:00</authored-date>
  <message>Made comments feed tolerant of comments whose radars have been deleted.

In the future, we should delete comments associated with a radar when that radar is deleted.</message>
  <tree>06246efb51dd21e1f8da2b31d94dc5cb0d5fa781</tree>
  <committer>
    <name>Tim Burks</name>
    <email>tim@neontology.com</email>
  </committer>
</commit>
