diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-02-27 02:47:32 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-02-27 02:47:32 +0000 |
| commit | c8afb75d53a0fc1a4c8be408b0963076b1925536 (patch) | |
| tree | 39883010600f9e0952588239c216d2eee315c96e | |
| parent | 64315b9eec185858a02006822dfe0389026be932 (diff) | |
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
| -rw-r--r-- | django/db/models/sql/subqueries.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/subqueries.py b/django/db/models/sql/subqueries.py index 57612da6d6..d4874d3d23 100644 --- a/django/db/models/sql/subqueries.py +++ b/django/db/models/sql/subqueries.py @@ -157,7 +157,7 @@ class UpdateQuery(Query): 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)) |
