Ticket #1674: pkgenviewupd.diff

File pkgenviewupd.diff, 544 bytes (added by pmd@…, 9 years ago)
  • create_update.py

     
    101101    except ObjectDoesNotExist:
    102102        raise Http404, "No %s found for %s" % (model._meta.verbose_name, lookup_kwargs)
    103103
    104     manipulator = model.ChangeManipulator(object.id, follow=follow)
     104    manipulator = model.ChangeManipulator(getattr(object, object._meta.pk.name),
     105                                        follow=follow)
    105106
    106107    if request.POST:
    107108        new_data = request.POST.copy()
Back to Top