jez...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 968e6c9

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

Backport from trunk (r16557).

  • Participants
  • Parent commits 169aeed
  • Branches releases/1.3.X

Comments (0)

Files changed (2)

File django/contrib/gis/db/backends/

         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):

File django/views/generic/

         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