Made it django 1.6 compatible,

There's a 1.6 version of the code removed (specifically, it's now a Truncator class), but since the code wasn't using it anyway, I didn't bother to add it in.

After making this small modification, the code runs successfully in the 1.6 beta.