Hello everyone, I would like you to help me with this problem.

I have two models Headquarters and Salon

when I click on a venue <a href="{% url'fup:listarSalon' headquarters.name 
%}"> {{headquarters.name}} </a> list all the rooms that the headquarters 
has, when I want to edit a salon when saving the changes generates the 
following error:

NoReverseMatch at / fup / editsalon / COMMUNICATION / 71 /

Reverse for 'listSalon' with arguments '()' and keyword arguments 
'{u'idsede': u'COMUNICACION '}' not found. 1 pattern (s) tried: [u'fup / 
listaSalon / (? P <slug>. *) / $ ']


But I want to save me in the same view


This is the function of updating salon

class SalonUpdate(UpdateView):    model = Salon    form_class = SalonForm    
template_name = 'fup/form_salon.html'    def __init__(self, **kwargs):        
super(SalonUpdate, self).__init__(**kwargs)        self.kwargs = None    def 
get_context_data(self, **kwargs):        context = super(SalonUpdate, 
self).get_context_data(**kwargs)        context['sede'] = 
self.kwargs.get('slug')        return context    def get_success_url(self):     
   sede = self.kwargs.get('slug')        return reverse('fup:listarSalon', 
kwargs={'idsede': sede})



-- 




*
*

*
*

*Declinación de Responsabilidades:* Los servicios de MISENA 
son soportados tecnológicamente por © Google y ofrecidos por el Servicio 
Nacional de Aprendizaje – SENA de manera gratuita a los aprendices e 
instructores de programas de formación titulada, las opiniones que contenga 
este mensaje son exclusivas de su autor y no representan la opinión del 
Servicio Nacional de Aprendizaje o de sus autoridades. El receptor deberá 
verificar posibles virus informáticos que tenga el correo o cualquier 
anexo, razón por la cual el SENA no es responsable de los daños causados 
por cualquier virus transmitido en este correo electrónico.

Los 
contenidos, textos, imágenes, archivos enviados en este mensaje son 
responsabilidad exclusiva del remitente y no reflejan ni comprometen de 
ninguna manera a la institución. No se autoriza el uso de esta herramienta 
para el intercambio de correos masivos, cadenas o spam, ni de mensajes 
ofensivos, de carácter político, sexual o religioso, con fines de lucro, 
con propósitos delictivos o cualquier otro mensaje que se considere 
indebido o que vaya en contra de la Ley.

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/614ea6d7-7841-4211-a355-fb55dbfb715a%40googlegroups.com.

Reply via email to