def get_queryset(self):
        if self.queryset is not None:
            qs = self.queryset
        else:
            qs = self.model._default_manager.get_query_set()

        if not qs.ordered:
            qs = qs.order_by(self.model._meta.pk.name)

        if self.max_num > 0:
            _queryset = qs[:self.max_num]
        else:
            _queryset = qs
        return _queryset
dataset/ETHPy150Open hzlf/openbroadcast/website/multilingual/admin.py/MultilingualInlineFormSet.get_queryset/original