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):
|
121 | 121 | raise NotImplementedError('Aggregate support not implemented for this spatial backend.') |
122 | 122 | |
123 | 123 | def spatial_lookup_sql(self, lvalue, lookup_type, value, field): |
124 | | raise NotImplmentedError |
| 124 | raise NotImplementedError |
125 | 125 | |
126 | 126 | # Routines for getting the OGC-compliant models. |
127 | 127 | def geometry_columns(self): |
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):
|
967 | 967 | if value and ':' in value: |
968 | 968 | try: |
969 | 969 | return clean_ipv6_address(value, self.unpack_ipv4) |
970 | | except ValidationError: |
| 970 | except exceptions.ValidationError: |
971 | 971 | pass |
972 | 972 | return value |
973 | 973 | |
diff --git a/django/views/debug.py b/django/views/debug.py
index 58d271b..4cbe101 100644
a
|
b
|
import sys
|
5 | 5 | import types |
6 | 6 | |
7 | 7 | from django.conf import settings |
| 8 | from django.core.exceptions import ImproperlyConfigured |
8 | 9 | from django.http import (HttpResponse, HttpResponseServerError, |
9 | 10 | HttpResponseNotFound, HttpRequest, build_request_repr) |
10 | 11 | from django.template import (Template, Context, TemplateDoesNotExist, |
… |
… |
def get_exception_reporter_filter(request):
|
79 | 80 | try: |
80 | 81 | default_exception_reporter_filter = getattr(mod, classname)() |
81 | 82 | 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)) |
83 | 84 | if request: |
84 | 85 | return getattr(request, 'exception_reporter_filter', default_exception_reporter_filter) |
85 | 86 | else: |
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):
|
211 | 211 | date_list = queryset.dates(date_field, date_type)[::-1] |
212 | 212 | if date_list is not None and not date_list and not allow_empty: |
213 | 213 | 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) |
215 | 215 | }) |
216 | 216 | |
217 | 217 | return date_list |