Fixes Django version comparison.