Ticket #16531: 16351.patch

File 16351.patch, 2.8 KB (added by Bruno Renié, 13 years ago)
  • django/contrib/gis/db/backends/base.py

    diff --git a/django/contrib/gis/db/backends/base.py b/django/contrib/gis/db/backends/base.py
    index 2a62d97..c8bb3d2 100644
    a b class BaseSpatialOperations(object):  
    121121        raise NotImplementedError('Aggregate support not implemented for this spatial backend.')
    122122
    123123    def spatial_lookup_sql(self, lvalue, lookup_type, value, field):
    124         raise NotImplmentedError
     124        raise NotImplementedError
    125125
    126126    # Routines for getting the OGC-compliant models.
    127127    def geometry_columns(self):
  • django/db/models/fields/__init__.py

    diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
    index 4362c04..b786b7b 100644
    a b class GenericIPAddressField(Field):  
    967967        if value and ':' in value:
    968968            try:
    969969                return clean_ipv6_address(value, self.unpack_ipv4)
    970             except ValidationError:
     970            except exceptions.ValidationError:
    971971                pass
    972972        return value
    973973
  • django/views/debug.py

    diff --git a/django/views/debug.py b/django/views/debug.py
    index 58d271b..4cbe101 100644
    a b import sys  
    55import types
    66
    77from django.conf import settings
     8from django.core.exceptions import ImproperlyConfigured
    89from django.http import (HttpResponse, HttpResponseServerError,
    910    HttpResponseNotFound, HttpRequest, build_request_repr)
    1011from django.template import (Template, Context, TemplateDoesNotExist,
    def get_exception_reporter_filter(request):  
    7980        try:
    8081            default_exception_reporter_filter = getattr(mod, classname)()
    8182        except AttributeError:
    82             raise exceptions.ImproperlyConfigured('Default exception reporter filter module "%s" does not define a "%s" class' % (modname, classname))
     83            raise ImproperlyConfigured('Default exception reporter filter module "%s" does not define a "%s" class' % (modname, classname))
    8384    if request:
    8485        return getattr(request, 'exception_reporter_filter', default_exception_reporter_filter)
    8586    else:
  • django/views/generic/dates.py

    diff --git a/django/views/generic/dates.py b/django/views/generic/dates.py
    index 128f71c..90258c6 100644
    a b class BaseDateListView(MultipleObjectMixin, DateMixin, View):  
    211211        date_list = queryset.dates(date_field, date_type)[::-1]
    212212        if date_list is not None and not date_list and not allow_empty:
    213213            raise Http404(_(u"No %(verbose_name_plural)s available") % {
    214                     'verbose_name_plural': force_unicode(qs.model._meta.verbose_name_plural)
     214                    'verbose_name_plural': force_unicode(queryset.model._meta.verbose_name_plural)
    215215            })
    216216
    217217        return date_list
Back to Top