alphagov/need-o-tron — pull request #15 by JordanHatch (2013-04-03 22:48:13+00:00)
Title: Combine Directgov links, existing services and justifications into sources

We currently have three different types of data attached to needs which say why we're doing a need:

- Directgov links
- Existing services
- Justifications

All three of these seem to achieve the same thing, but are split into three different UIs and have slighly different models. The custom functionality given to Directgov links to lookup the page title given the Directgov ID is now redundant, since Directgov is no longer around, and the custom file uploads given to Justifications were disabled quite a while ago.

This branch moves all three of these into a new single model, called a Source. A need can have multiple sources. Each source must have a kind, and then optionally a title, url and additional text. Sources have better test coverage, and there's migrations to move the old models into Sources. Plus, there's only one place to add a new source now, rather than three, so it removes some ambiguity when adding supporting details for a need.