You'll need to clone the implementation of `smart_urlquote` into the compat module for Django 1.3 support.
The compat module should then transparently attempt to import it from django and fall back to the cloned implementation if it gets an import error.

We'll be able to drop that and just import from django directly once we stop supporting 1.3.