5 | | diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py |
6 | | index 499d27d..58049ed 100644 |
7 | | --- a/django/contrib/admin/options.py |
8 | | +++ b/django/contrib/admin/options.py |
9 | | @@ -668,7 +668,7 @@ class ModelAdmin(BaseModelAdmin): |
10 | | try: |
11 | | object_id = field.to_python(object_id) |
12 | | return queryset.get(**{field.name: object_id}) |
13 | | - except (model.DoesNotExist, ValidationError, ValueError): |
14 | | + except (model.DoesNotExist, ValidationError, ValueError, OverflowError): |
15 | | return None |
16 | | |
17 | | def get_changelist_form(self, request, **kwargs): |
| 5 | |