Django 1.5 compatibility

This fixes {% url %} syntax without apostrophes that was deprecated in 1.4 and removed in 1.5. The patch should work across Django versions from 1.3 to 1.5.