Fixes https://github.com/GeoNode/geonode/issues/677

Thanks @ischneider