[Django 1.6] Fixes ordering_aliases AttributeError.