A number of generic Django fixes were applied during the development of layerindex-web, and these need to be applied to buildhistory-web as well.
Fixes have now been applied and pushed to the buildhistory-web repository.