def _check_extra(self, obj):

        if not isinstance(obj.extra, int):
            return must_be('an integer', option='extra', obj=obj, id='admin.E203')
        else:
            return []
Check that extra is an integer.
dataset/ETHPy150Open django/django/django/contrib/admin/checks.py/InlineModelAdminChecks._check_extra