I am getting a strange error on my humble opinion..

*Why am I getting this error?*

Reverse for 'registo.detail' with arguments '(1,)' and keyword arguments '{}' 
not found.


*my views:*

from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.shortcuts import render_to_response
from django.db.models import Count

from paletes.models import Registo

# lista de paletes
def registo_paletes(request):
        registos = Registo.objects.all()
        
        return render_to_response("paletes/registo_paletes.html", {'registos': 
registos})


# detalhe
class registo_Detail(UpdateView):
        
        model = Registo


*my urls*:

from django.conf.urls import patterns, include, url
from paletes.views import registo_paletes, registo_Detail

urlpatterns = patterns('',
  url(r'^$', registo_paletes, name='index'),
  url(r'registo/(?P<id>\d+)', registo_Detail.as_view(), name='detail'),
)


*my template:*
{% extends "flatpages/default.html" %}

{% block content %}

<div id="conteudoCentrado">

<div id="apresentacao">
<table id="listagens">
<tr>
<th>Guia</th> <th>Cliente</th> <th>Data</th> <th>Total paletes LS</th>
</tr>
{% for registo in registos %}
<tr>
<td><a href="{% url 'registo.detail' registo.id %}">{{ 
registo.guia_de_remessa }}</a></td><td>{{ registo.cliente }}</td><td>{{ 
registo.data }}</td><td>{{ registo.total_paletes_LS }}</td> 
</tr>
{% endfor %}
 </table>
</div>

{% endblock %}

I can't pass over it, can you help with this inssue?
Thanks

-- 
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to