solving metaclass problem on django 1.6