Browse files

queryset-refactor: Typo fix. Fixed #6670. Thanks, alex.

git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 64315b9 commit c8afb75d53a0fc1a4c8be408b0963076b1925536 @malcolmt malcolmt committed Feb 27, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/sql/subqueries.py
View
2 django/db/models/sql/subqueries.py
@@ -157,7 +157,7 @@ def add_update_values(self, values):
field, model, direct, m2m = self.model._meta.get_field_by_name(name)
if not direct or m2m:
# Can only update non-relation fields and foreign keys.
- raise fieldError('Cannot update model field %r (only non-relations and foreign keys permitted).' % field)
+ raise FieldError('Cannot update model field %r (only non-relations and foreign keys permitted).' % field)
if field.rel and isinstance(val, Model):
val = val.pk
self.values.append((field.column, val))

0 comments on commit c8afb75

Please sign in to comment.