fix bug 847190 - use django is_safe_url
Merge pull request #963 from groovecoder/next-is-safe-url-847190

fix bug 847190 - use django is_safe_url