On Sep 11, 2:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > after updating the object, it redirect to /users/xxx, but i want it go > to /user/xxx.
django.contrib.auth.models.User defines get_absolute_url() for the User object as /users/xxx. the update_object() view by default uses get_absolute_url() but can take an extra paramater, post_save_redirect which appears to be an expandable string that gets fed the objects that is being edited. You can therefore probably try: return update_object( request, model=MyUser, object_id=user_id, login_required=True, template_name="myuser/user_edit_form.html", post_save_redirect="/user/%(id)/", ) Untested, but worth a shot :) Good luck. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---