Changes between Initial Version and Version 1 of Ticket #27397, comment 26


Ignore:
Timestamp:
Nov 7, 2016, 4:08:17 PM (8 years ago)
Author:
Ramin Farajpour Cami

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27397, comment 26

    initial v1  
    33
    44{{{
    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
    186diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py
    197index 66ad278..36c1351 100644
Back to Top