Conjunto 94d213e en seguimiento_proyectos


Ignorar:
Fecha y hora:
15/06/2017 15:04:24 (hace 7 años)
Autor:
lhernandez <lhernandez@…>
Branches:
master, desarrollo
Children:
774f087
Parents:
08c074e (diferencia), 8c18ab8 (diferencia)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Mensaje:

Merge branch 'desarrollo' of https://planificacion.cenditel.gob.ve/scm/git/seguimiento_proyectos

Ubicación:
sepai
Ficheros:
2 editados

Leyenda

No modificado
Añadido
Eliminado
  • sepai/proyectos/views.py

    rde2ff87 r8c18ab8  
    1616    render, redirect, render_to_response
    1717)
     18from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DELETION
     19from django.contrib.contenttypes.models import ContentType
    1820from django.http import HttpResponse, Http404
    1921from django.template import RequestContext
     
    255257        """
    256258        nuevo_project = forms['proyecto'].save()
    257         prueba = self.form_classes['obj_proy'](self.request.POST, instance=nuevo_project)
    258         if prueba.is_valid():
    259             prueba.save()
     259        objetivo_es = self.form_classes['obj_proy'](self.request.POST, instance=nuevo_project)
     260        if objetivo_es.is_valid():
     261            objetivo_es.save()
    260262        nuevo_resp_tec = forms['resp_tec'].save(commit=False)
    261263        nuevo_resp_gen = forms['resp_gere'].save(commit=False)
     
    264266        nuevo_resp_gen.fk_proyecto = nuevo_project
    265267        nuevo_resp_gen.save()
     268        model_proyecto = ContentType.objects.get_for_model(Proyecto).pk
     269        LogEntry.objects.log_action(
     270            user_id=self.request.user.id,
     271            content_type_id=model_proyecto,
     272            object_id=nuevo_project.pk,
     273            object_repr=str(nuevo_project.nombre),
     274            action_flag=ADDITION)
    266275        messages.success(self.request, "El usaurio %s, ha creado con exito,\
    267276                                        el proyecto %s" %
  • sepai/templates/contenedor/pie.html

    r3a5ffe7 r8c18ab8  
    33 {% load staticfiles %}
    44    <footer class="footer navbar-fixed-bottom">
    5     <p align="center">Centro Nacional de Desarrollo e Investigacion en Tecnologias Libres <a href="https://www.cenditel.gob.ve"> <strong>Copyleft <span style="font: 18px Arial, sans-serif; display: inline-block; transform: rotate(180deg);">&copy;</span>CENDITEL</a>.</strong>
     5    <p align="center">Centro Nacional de Desarrollo e Investigacion en Tecnologias Libres <a href="https://www.cenditel.gob.ve"> <strong>Copyleft <span style="font: 18px Arial, sans-serif; display: inline-block; transform: rotate(180deg);">&copy;</span>CENDITEL {% now "Y" %}</a>.</strong>
    66    <p>
    77    </footer>
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.