Error 500 in opening history page of an model object in Django 4.1.3

After upgrading to Django 4.1.3 from Django 1.x i’m facing this error.

 File "/src/django-devices/devices/", line 44, in _get_count
    self._count = super(LargeTablePaginator, self)._get_count()
AttributeError: 'super' object has no attribute '_get_count'

Can’t seem to find the solution anywhere

Hi! _get_count() was a private API removed in Django 1.10. You should update your code and use the count instead.