Fix erroneous asserts and culprit code, in TranslationAwareManager handling of Q objects and exclude().
Fix handling of IntegrityError in get_or_create for Django version 1.6+.