django: plugins: closed bugs

Django migration: #47 (closed).

This MR adds the closed bug plugin.

BTS communication is now handled by debianbts. Bugs are stored in a Bug model and all useful information can be accessed through its attributes.

The plugin will loop on all bugs declared in Closes's changes field and assert their QA cleanness.

A couple of checks have been added. Here is the complete list:

  • The bug exist
  • The bug belong to the package
  • The bug is open
  • The bug is not a RFH, O or RFS
  • The upload don't close more than one wnpp bug

Results are presented on the package page. QA results are visually the same, but one change: The bug type (ITA, ITP, normal bug) info is now displayed beside the severity.

I had to modify slightly the Bug model to store that package as well, in order to display the link to package's bugs on the BTS.

Merge request reports

Loading