Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.3.X] Fixed #16531 -- Fixed various instances of "undefined name" i…

…ssues. Thanks, Bruno Renié.

Backport from trunk (r16557).

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c0fa1965e2f45e1b56377216cac3b8154c430496 1 parent 41e086c
@jezdez jezdez authored
2  django/contrib/gis/db/backends/
@@ -122,7 +122,7 @@ def spatial_aggregate_sql(self, agg):
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):
6 django/views/generic/
@@ -211,9 +211,9 @@ def get_date_list(self, queryset, date_type):
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

0 comments on commit c0fa196

Please sign in to comment.
Something went wrong with that request. Please try again.