[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
This commit is contained in:
Jannis Leidel 2011-07-29 09:48:05 +00:00
parent 41e086cfb5
commit c0fa1965e2
2 changed files with 4 additions and 4 deletions

View File

@ -122,7 +122,7 @@ class BaseSpatialOperations(object):
raise NotImplementedError('Aggregate support not implemented for this spatial backend.') raise NotImplementedError('Aggregate support not implemented for this spatial backend.')
def spatial_lookup_sql(self, lvalue, lookup_type, value, field): def spatial_lookup_sql(self, lvalue, lookup_type, value, field):
raise NotImplmentedError raise NotImplementedError
# Routines for getting the OGC-compliant models. # Routines for getting the OGC-compliant models.
def geometry_columns(self): def geometry_columns(self):

View File

@ -211,9 +211,9 @@ class BaseDateListView(MultipleObjectMixin, DateMixin, View):
date_list = queryset.dates(date_field, date_type)[::-1] date_list = queryset.dates(date_field, date_type)[::-1]
if date_list is not None and not date_list and not allow_empty: if date_list is not None and not date_list and not allow_empty:
raise Http404(_(u"No %(verbose_name_plural)s available") % { name = force_unicode(queryset.model._meta.verbose_name_plural)
'verbose_name_plural': force_unicode(qs.model._meta.verbose_name_plural) raise Http404(_(u"No %(verbose_name_plural)s available") %
}) {'verbose_name_plural': name})
return date_list return date_list