@register.filter
def num_drafts(issue, user):
  return issue.get_num_drafts(user)
Returns number of drafts for given user.
dataset/ETHPy150Open rietveld-codereview/rietveld/codereview/library.py/num_drafts