ó !´IRc@s€ddlmZddlmZmZmZddlmZddlm Z ddlm Z m Z ddl m Z m Z ddlmZmZmZmZddlmZdd lmZdd lmZdd lmZddlmZdd lmZdd lmZdd lmZddlmZddlmZddlm Z m!Z!m"Z"ddl#Tddl$Td„Z%d„Z&dS(iÿÿÿÿ(tTemplateResponse(t authenticatetlogintlogout(tmessages(tHttpResponseRedirect(Rt HttpResponse(tRequestContexttloader(tget_object_or_404trendertrender_to_responsetredirect(treverse(t ModelForm(tformset_factory(tCount(tauth(tlogin_required(tdatetime(t Paginatort InvalidPaget EmptyPage(t*cCs¢tjjddƒ}tjjƒjd|ƒ}tjjƒjd|d|ƒ}tdi|d6|d6dd6d d 6d d 6d d 6d d 6d d6dt|ƒƒS(NtnombresPendiente de devolucióntestatustlotesDevolucion.htmltdatostactivet devoluciontclosedtactivot no_activotasignacion_activotregistro_revisiont configuraciontcontext_instance( tEstatustobjectstgettLotetalltfiltertEquipoR R(trequestt estatusDevRR((sC:\prometeo\devolucion\views.pyt Devolucions!cCsÞtjjddƒ}tjjƒjd|ƒd}tjjddƒ}tjjƒjd|ƒ}||_|jƒx!|D]}||_|jƒq~Wt di|d6dd 6dd 6dd 6dd 6dd 6dt |ƒƒS(NRsPendiente de devoluciónRis DevoluciónRsDevolucionRespuesta.htmlRRR R!R"R#R$( R%R&R'R(R)R*R+RtsaveR R(R,R-Rt estatusLotetEquipost Equiposmalos((sC:\prometeo\devolucion\views.pytEquiposDevolucion"s    N('tdjango.template.responseRtdjango.contrib.authRRRtdjango.contribRt django.httpRRtdjango.templateRRtdjango.shortcutsR R R R tdjango.core.urlresolversR t django.formsRtdjango.forms.formsetsRtdjango.db.modelsRRtdjango.contrib.auth.decoratorsRRtdjango.core.paginatorRRRtrevision.modelstregistro.modelsR.R3(((sC:\prometeo\devolucion\views.pyts*"