Added on_delete=models.SET_NULL to thumbnails to prevent them from deleting layers, thanks Fuyou on #django
Merge branch 'master' of github.com:GeoNode/geonode