mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -157,7 +157,7 @@ class UpdateQuery(Query): | |||||||
|             field, model, direct, m2m = self.model._meta.get_field_by_name(name) |             field, model, direct, m2m = self.model._meta.get_field_by_name(name) | ||||||
|             if not direct or m2m: |             if not direct or m2m: | ||||||
|                 # Can only update non-relation fields and foreign keys. |                 # 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): |             if field.rel and isinstance(val, Model): | ||||||
|                 val = val.pk |                 val = val.pk | ||||||
|             self.values.append((field.column, val)) |             self.values.append((field.column, val)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user