Browse Source

Fix i18n setup for models

pull/6/head
Marcio Mazza 10 years ago
parent
commit
170a7b0ed5
  1. 2
      base/models.py
  2. 2
      comissoes/models.py
  3. 2
      legacy/scripts/scrap_original_forms.py
  4. 2
      lexml/models.py
  5. 2
      materia/models.py
  6. 2
      norma/models.py
  7. 2
      parlamentares/models.py
  8. 2
      protocoloadm/models.py
  9. 2
      sessao/models.py

2
base/models.py

@ -1,5 +1,5 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _
class CasaLegislativa(models.Model): class CasaLegislativa(models.Model):

2
comissoes/models.py

@ -1,5 +1,5 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _
from parlamentares.models import Parlamentar from parlamentares.models import Parlamentar
from sapl.utils import make_choices from sapl.utils import make_choices

2
legacy/scripts/scrap_original_forms.py

@ -180,7 +180,7 @@ def print_app_with_verbose_names(app):
continue continue
elif line == 'from django.db import models': elif line == 'from django.db import models':
header += '''from django.db import models header += '''from django.db import models
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _
''' '''
elif 'class' in line: elif 'class' in line:
break break

2
lexml/models.py

@ -1,5 +1,5 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _
class LexmlProvedor(models.Model): # LexmlRegistroProvedor class LexmlProvedor(models.Model): # LexmlRegistroProvedor

2
materia/models.py

@ -1,5 +1,5 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _
from comissoes.models import Comissao from comissoes.models import Comissao
from parlamentares.models import Parlamentar, Partido from parlamentares.models import Parlamentar, Partido

2
norma/models.py

@ -1,5 +1,5 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _
from materia.models import MateriaLegislativa from materia.models import MateriaLegislativa
from sapl.utils import make_choices from sapl.utils import make_choices

2
parlamentares/models.py

@ -1,5 +1,5 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _
from sapl.utils import make_choices from sapl.utils import make_choices

2
protocoloadm/models.py

@ -1,5 +1,5 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _
from materia.models import Autor, TipoMateriaLegislativa, UnidadeTramitacao from materia.models import Autor, TipoMateriaLegislativa, UnidadeTramitacao
from sapl.utils import make_choices from sapl.utils import make_choices

2
sessao/models.py

@ -1,5 +1,5 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy as _
from materia.models import MateriaLegislativa from materia.models import MateriaLegislativa
from parlamentares.models import (CargoMesa, Parlamentar, SessaoLegislativa, from parlamentares.models import (CargoMesa, Parlamentar, SessaoLegislativa,

Loading…
Cancel
Save