Commit c0fa1965 authored by Jannis Leidel's avatar Jannis Leidel
Browse files

[1.3.X] Fixed #16531 -- Fixed various instances of "undefined name" issues. Thanks, Bruno Renié.

Backport from trunk (r16557).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 41e086cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ class BaseSpatialOperations(object):
        raise NotImplementedError('Aggregate support not implemented for this spatial backend.')

    def spatial_lookup_sql(self, lvalue, lookup_type, value, field):
        raise NotImplmentedError
        raise NotImplementedError

    # Routines for getting the OGC-compliant models.
    def geometry_columns(self):
+3 −3
Original line number Diff line number Diff line
@@ -211,9 +211,9 @@ class BaseDateListView(MultipleObjectMixin, DateMixin, View):

        date_list = queryset.dates(date_field, date_type)[::-1]
        if date_list is not None and not date_list and not allow_empty:
            raise Http404(_(u"No %(verbose_name_plural)s available") % {
                    'verbose_name_plural': force_unicode(qs.model._meta.verbose_name_plural)
            })
            name = force_unicode(queryset.model._meta.verbose_name_plural)
            raise Http404(_(u"No %(verbose_name_plural)s available") %
                          {'verbose_name_plural': name})

        return date_list