Allow XBlocks to be used with django 1.6

I didn't see any django 1.6 incompatibilities in the code, and neither did the tests.

@nedbat