def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['pk'] = self.kwargs['pk'] context['action'] = reverse('item_editar', kwargs={'pk':self.kwargs['pk']}) if self.ocurrio_error : context['nodefault'] = '__panel.html' return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['title'] = '%s <small>(%s)</small>' % ( self.object.get_full_name(), self.object.email) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) enroll = Enroll.objects.filter(student=self.object).order_by('enroll_date') context['enroll'] = enroll.filter(enroll_activate=True, enroll_finished=True) context['pre_enroll'] = enroll.filter(enroll_activate=True, enroll_finished=False) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['title'] = '%s <small>(%s)</small>' % ( self.object.get_full_name(), self.object.email) return context
def get_context_data(self): context = UpdateView.get_context_data(self) if self.request.POST: context["line"] = ProposalInlineFormSet( self.request.POST, instance=self.object) else: context["line"] = ProposalInlineFormSet(instance=self.object) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) enroll = Enroll.objects.filter( student=self.object).order_by('enroll_date') context['enroll'] = enroll.filter(enroll_activate=True, enroll_finished=True) context['pre_enroll'] = enroll.filter(enroll_activate=True, enroll_finished=False) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) #ejecuta una serie de validaciones para permitir establecer a eliminado #o ocultar el formulario item_eliminar = get_object_or_404(Item, pk=self.kwargs['pk']) if not self.eliminacion_valida(item_eliminar): context['denegar_eliminacion'] = True context['action'] = reverse('item_eliminar' , kwargs={'pk':self.kwargs['pk']} ) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['preconditions_formset'] = TestCasePreConditionFormSet( self.request.POST or None, instance=self.object) context['postconditions_formset'] = TestCasePostConditionFormSet( self.request.POST or None, instance=self.object) context['steps_formset'] = TestCaseStepFormSet(self.request.POST or None, instance=self.object) context['revision_form'] = TestCaseRevisionForm(self.request.POST or None) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['client'] = self.get_object().client return context
def get_context_data(self,**kwargs): context=UpdateView.get_context_data(self,**kwargs) context['profil_form'] = ProfilFormSet(instance=self.get_object()) return context
def get_context_data(self, **kwargs): context = djUpdateView.get_context_data(self, **kwargs) context['laboratory'] = self.lab return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context["addresses_form"] = ClientAdressesForm( instance=self.get_object()) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['action'] = reverse('rol_permisos_edita',kwargs={'pk':self.kwargs['pk']}) if self.templ_base_error: context['nodefault'] = self.templ_base_error return context
def get_context_data(self, **kwargs): ctxt = UpdateView.get_context_data(self, **kwargs) ctxt['subnav_template_name'] = 'sigad/subnav_documento.yaml' return ctxt
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['action'] = reverse('modificar_usuario',kwargs={'pk':self.kwargs['pk']}) if self.templ_base_error: context['nodefault'] = self.templ_base_error return context
def get_context_data(self, **kwargs): kwargs = UpdateView.get_context_data(self, **kwargs) kwargs = InlineFormMixin.get_context_data(self, **kwargs) return kwargs
def get_context_data(self, **kwargs): ctxt = UpdateView.get_context_data(self, **kwargs) ctxt['subnav_template_name'] = 'sigad/subnav_documento.yaml' return ctxt
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['deal'] = self.deal return context
def get_context_data(self, **kwargs): kwargs = UpdateView.get_context_data(self, **kwargs) kwargs = InlineFormMixin.get_context_data(self, **kwargs) return kwargs
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context["devisligne_form"] = DevisLigneForm(instance=self.get_object()) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context["profile_formset"] = ProfileInlineFormSet( instance=self.get_object()) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['action'] = reverse('solicitud_edita', \ kwargs={'pk':self.kwargs['pk']}) return context
def get_context_data(self, **kwargs): context = djUpdateView.get_context_data(self, **kwargs) context['laboratory'] = self.lab return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['idgrupo'] = self.kwargs['pk'] return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['deal'] = VirtualDeal().by_user(self.user1, self.user2, level=0) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context['action'] = reverse('iniciar_proyecto' , kwargs={'pk':self.kwargs['pk']} ) return context
def get_context_data(self, **kwargs): context = UpdateView.get_context_data(self, **kwargs) context["event"] = Event.objects.get(id=1) context["volunteers"] = Volunteer.objects.all() return context