Fix Opps run django 1.6 and 1.7