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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27397, comment 28

    initial v1  
     1
     2this change is not important i will remove code,
     3
     4{{{
     5diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
     6index 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):
     18}}}
     19
     20
    121do you confirm fix and patch for PR?
    222
Back to Top