Fix smart_u for Django 1.3