Changeset 934481f in ecoalba for apps/carga/views.py


Ignore:
Timestamp:
Jan 22, 2014, 5:06:08 PM (10 years ago)
Author:
jbecerra <jbecerra@…>
Branches:
master
Children:
787a41a
Parents:
7893c9b
Message:

Ajuste en vista carga y tasks de celery

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/carga/views.py

    r47c62bb r934481f  
    88from geraldo.generators import PDFGenerator
    99from datetime import date
     10from django.utils import translation
    1011from django.utils.translation import ugettext_lazy as _l, ugettext as _
    1112from settings import PATH, DEBUG
     
    4647            flujo_comercial = int(form.cleaned_data['flujo_comercial'])
    4748           
     49            cur_language = translation.get_language()
     50           
    4851            if flujo_comercial == 1:
    4952                if DEBUG:
     
    5356            elif flujo_comercial == 2:
    5457                if DEBUG:
    55                     cargar_comercio_exterior(usuario, pais, anyo, mes, archivo)
     58                    cargar_comercio_exterior(cur_language, usuario, pais, anyo, mes, archivo)
    5659                else:
    57                     cargar_comercio_exterior.delay(usuario, pais, anyo, mes, archivo)
     60                    cargar_comercio_exterior.delay(cur_language, usuario, pais, anyo, mes, archivo)
    5861    else:
    5962        form = CargaMasivaForm(paises = paises)
Note: See TracChangeset for help on using the changeset viewer.