Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: Fixed #1674 -- Generic update_object() view now handle…

…s PKs named something other than 'id'

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5a2b52c9e8007edc483a4e94988c58106a6d2b4b 1 parent e55924b
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/generic/
2  django/views/generic/
@@ -101,7 +101,7 @@ def update_object(request, model, object_id=None, slug=None,
except ObjectDoesNotExist:
raise Http404, "No %s found for %s" % (model._meta.verbose_name, lookup_kwargs)
- manipulator = model.ChangeManipulator(, follow=follow)
+ manipulator = model.ChangeManipulator(getattr(object,, follow=follow)
if request.POST:
new_data = request.POST.copy()
Please sign in to comment.
Something went wrong with that request. Please try again.