On Nov 27, 10:43 pm, bruno desthuilliers
<[EMAIL PROTECTED]> wrote:
> On 27 nov, 14:19, dash86no <[EMAIL PROTECTED]> wrote:
> (snip)
>
> > However, when I do :
>
> > <a href="{% url delete-quote-page object_id=object.id %}">delete</a>
>
> > I get the error:
>
> > Caught an exception while rendering: Reverse for 'sam_project.delete-
> > quote-page,' with arguments '('',)' and keyword arguments '{}' not
> > found.
>
> > If anyone has any hints they would be most appreciated.
>
> The two things I'd try:
> 1/ double-check that object.id is not empty
> 2/ try this syntax:
>
> <a href="{% url delete-quote-page object.id %}">delete</a>

sorry guys,

I did have <a href="{% url delete-quote-page object.id %}">delete</a>
originally, I added that objectid= bit when trying to solve with trial
and error.

I'm not sure how object.id could be empty since

 <p><a href="http://localhost:8000/sam/quote/delete/
{{ object.id }}">delete</a>
 works fine and also references object.id
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to