GeoNode/geonode — pull request #1672 by mwengren (2014-08-28 17:54:50+00:00)
Title: Change Foreign Key relationship for ResourceBase and Thumbnail

___What does this PR do?___
Reverses ForeignKey relationship between Thumbnail and ResourceBase to be Many -> One. Should solve repeated thumbnail issue on Updatelayers execution. The result is a single file on the filesystem per ResourceBase object. Cascade deletes Thumbnails on ResourceBase delete. Doesn't delete thumbnail file on disk for some reason.

Note: Also fixes a legacy issue with Updatelayers code in gs_slurp where some code was overwritten in a bulk merge following 2.0 release.