def _initialize_issue_counts(review_request):
 if (review_request.pk is None):
  return 0
 issue_counts = fetch_issue_counts(review_request)
 review_request.issue_open_count = issue_counts[BaseComment.OPEN]
 review_request.issue_resolved_count = issue_counts[BaseComment.RESOLVED]
 review_request.issue_dropped_count = issue_counts[BaseComment.DROPPED]
 review_request.save(update_fields=[u'issue_open_count', u'issue_resolved_count', u'issue_dropped_count'])
 return None

def _initialize_issue_counts ( review_request ) : if ( review_request . pk is None ) : return 0 issue_counts = fetch_issue_counts ( review_request ) review_request . issue_open_count = issue_counts [ BaseComment . OPEN ] review_request . issue_resolved_count = issue_counts [ BaseComment . RESOLVED ] review_request . issue_dropped_count = issue_counts [ BaseComment . DROPPED ] review_request . save ( update_fields = [ u'issue_open_count' , u'issue_resolved_count' , u'issue_dropped_count' ] ) return None
initializes the issue counter fields for a review request .