

def _get_default_ordering(self):
    try:
        ordering = super(DocumentChangeList, self)._get_default_ordering()
    except AttributeError:
        ordering = []
        if self.model_admin.ordering:
            ordering = self.model_admin.ordering
        elif self.lookup_opts.ordering:
            ordering = self.lookup_opts.ordering
    return ordering

dataset/ETHPy150Open MongoEngine/django-mongoengine/django_mongoengine/mongo_admin/views.py DocumentChangeList._get_default_ordering/original