Added workarounds for django < 1.6.