@cached_property
    def needs_pagination(self):
        if self.objects_per_page == 0:
            return False
        if len(self.items) > self.objects_per_page \
                or len(self.get_pages[0]) > self.objects_per_page:
            return True
        return False
Redirect to the add view if no records exist or the change
dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/web/widgets/mixins.py/ListMixin.needs_pagination--crossover with--dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/utils/admin.py/SingletonAdmin.changelist_view