Пример #1
0
 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
Пример #2
0
    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
Пример #3
0
    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
Пример #4
0
    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
Пример #5
0
 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
Пример #6
0
    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
Пример #7
0
    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
Пример #8
0
 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
Пример #9
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['client'] = self.get_object().client
     return context
Пример #10
0
 def get_context_data(self,**kwargs):
     context=UpdateView.get_context_data(self,**kwargs)
     context['profil_form'] = ProfilFormSet(instance=self.get_object())
     return context
Пример #11
0
 def get_context_data(self, **kwargs):
     context = djUpdateView.get_context_data(self, **kwargs)
     context['laboratory'] = self.lab
     return context
Пример #12
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context["addresses_form"] = ClientAdressesForm(
         instance=self.get_object())
     return context
Пример #13
0
 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
Пример #14
0
    def get_context_data(self, **kwargs):

        ctxt = UpdateView.get_context_data(self, **kwargs)
        ctxt['subnav_template_name'] = 'sigad/subnav_documento.yaml'
        return ctxt
Пример #15
0
Файл: views.py Проект: IVNPY/sap
 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
Пример #16
0
 def get_context_data(self, **kwargs):
     kwargs = UpdateView.get_context_data(self, **kwargs)
     kwargs = InlineFormMixin.get_context_data(self, **kwargs)
     return kwargs
Пример #17
0
    def get_context_data(self, **kwargs):

        ctxt = UpdateView.get_context_data(self, **kwargs)
        ctxt['subnav_template_name'] = 'sigad/subnav_documento.yaml'
        return ctxt
Пример #18
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['deal'] = self.deal
     return context
Пример #19
0
 def get_context_data(self, **kwargs):
     kwargs = UpdateView.get_context_data(self, **kwargs)
     kwargs = InlineFormMixin.get_context_data(self, **kwargs)
     return kwargs
Пример #20
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context["devisligne_form"] = DevisLigneForm(instance=self.get_object())
     return context
Пример #21
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context["profile_formset"] = ProfileInlineFormSet(
         instance=self.get_object())
     return context
Пример #22
0
 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
Пример #23
0
 def get_context_data(self, **kwargs):
     context = djUpdateView.get_context_data(self, **kwargs)
     context['laboratory'] = self.lab
     return context
Пример #24
0
 def get_context_data(self, **kwargs):
     context = UpdateView.get_context_data(self, **kwargs)
     context['idgrupo'] = self.kwargs['pk']
     return context
Пример #25
0
 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
Пример #26
0
 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
Пример #27
0
 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