You nailed it james. It worked for me. The capitalization matters.

Thanks James..!!!

Yingi Kem

> On 17 Dec 2017, at 12:14 PM, James Schneider <[email protected]> wrote:
> 
> 
> 
> 
> <a href="{% url 'Update' pk=User.id %}">Update</a>
> 
> It gives the No Reverse Error. I dont seem to understand why
> 
> Instead of User.id, try user.id, capitalization matters.
> 
> Trying not to confuse things, but in this instance you may instead want to 
> use object.id, since you may be referring to a different User object than the 
> one that is logged in. I made an assumption that the view will be only 
> modifying the logged in user.
> 
> -James
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWcjSo3%3DXOPLopKxo5r2qqwZ3pE_97gGpJV4q5gGNELCA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/BB378E17-CAEB-4ADB-AF11-3E9A1F4AFE18%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to