Adds a fallback for django < 1.4.2