GeoNode/geonode — pull request #1664 by mwengren (2014-08-21 13:41:35+00:00)
Title: Don't assume a 'local' MapLayer has been added to GeoNode from GeoServer

Obtain name from thumbnail from Maplayer.name instead.

Resolves #1613.

The geoserver_post_save function that creates Map thumbnails assumes all layers from GXP 'Local GeoServer' source have already been added to GeoNode, which may not be the case. Throws 'layer matching query does not exist' exception when a map includes these layers. Fix is just to use MapLayer.name to send to GeoServer instead to generate the thumb.