Reverse for 'editar' with arguments '('',)' not found

Correct, because you have no object named rec in the context within the template being rendered.

If you’re trying to reference the same object that you are iterating through in your {% for ... tag, then your reference needs to be to reclamaciones, not rec.

you mean

substitute
href=“{% url ‘editarrec’ rec.id %}”

for

href=“{% url ‘editarrec’ reclamaciones.id %}”

1 Like

modifying the part of that code gives error:

Do you have a url defined by that name?

Side note: In the future, please do not post screen images of error messages or code. If you’re trying to pass along information about an error, post the traceback from the console window and not a screen image of your browser window.

1 Like

Sorry, I had the url but the name with a syntax error. Now if it works fine.

It was all because of the name that it took in the form, since it wasn’t rec it didn’t work well, now I understand.

Thank you.