Browse Source

fix: ugettext_lazy to gettext_lazy

bump_django
LeandroJatai 5 months ago
parent
commit
4cae976a91
  1. 2
      drfautoapi/drfautoapi.py
  2. 2
      sapl/api/apps.py
  3. 2
      sapl/api/forms.py
  4. 2
      sapl/audiencia/apps.py
  5. 2
      sapl/audiencia/forms.py
  6. 2
      sapl/audiencia/models.py
  7. 2
      sapl/base/admin.py
  8. 2
      sapl/base/apps.py
  9. 2
      sapl/base/email_utils.py
  10. 2
      sapl/base/forms.py
  11. 2
      sapl/base/models.py
  12. 2
      sapl/base/receivers.py
  13. 2
      sapl/base/templatetags/menus.py
  14. 2
      sapl/base/tests/test_form.py
  15. 2
      sapl/base/tests/test_view_base.py
  16. 2
      sapl/base/views.py
  17. 2
      sapl/comissoes/apps.py
  18. 2
      sapl/comissoes/forms.py
  19. 2
      sapl/comissoes/models.py
  20. 2
      sapl/comissoes/views.py
  21. 2
      sapl/compilacao/apps.py
  22. 2
      sapl/compilacao/forms.py
  23. 2
      sapl/compilacao/models.py
  24. 2
      sapl/compilacao/templatetags/compilacao_filters.py
  25. 2
      sapl/compilacao/views.py
  26. 2
      sapl/context_processors.py
  27. 2
      sapl/crud/base.py
  28. 2
      sapl/decorators.py
  29. 2
      sapl/lexml/apps.py
  30. 2
      sapl/lexml/forms.py
  31. 2
      sapl/lexml/models.py
  32. 2
      sapl/materia/apps.py
  33. 2
      sapl/materia/forms.py
  34. 2
      sapl/materia/models.py
  35. 2
      sapl/materia/views.py
  36. 2
      sapl/norma/apps.py
  37. 2
      sapl/norma/forms.py
  38. 2
      sapl/norma/models.py
  39. 2
      sapl/norma/tests/test_norma.py
  40. 2
      sapl/norma/views.py
  41. 2
      sapl/painel/apps.py
  42. 2
      sapl/painel/models.py
  43. 2
      sapl/painel/views.py
  44. 2
      sapl/parlamentares/apps.py
  45. 2
      sapl/parlamentares/forms.py
  46. 2
      sapl/parlamentares/models.py
  47. 2
      sapl/parlamentares/tests/test_parlamentares.py
  48. 2
      sapl/parlamentares/views.py
  49. 2
      sapl/protocoloadm/apps.py
  50. 2
      sapl/protocoloadm/forms.py
  51. 2
      sapl/protocoloadm/models.py
  52. 2
      sapl/protocoloadm/tests/test_protocoloadm.py
  53. 2
      sapl/protocoloadm/views.py
  54. 2
      sapl/redireciona_urls/apps.py
  55. 2
      sapl/relatorios/apps.py
  56. 2
      sapl/relatorios/forms.py
  57. 2
      sapl/relatorios/views.py
  58. 2
      sapl/rules/__init__.py
  59. 2
      sapl/rules/apps.py
  60. 2
      sapl/rules/tests/test_rules.py
  61. 2
      sapl/sessao/apps.py
  62. 2
      sapl/sessao/forms.py
  63. 2
      sapl/sessao/models.py
  64. 2
      sapl/sessao/tests/test_sessao.py
  65. 2
      sapl/sessao/tests/test_sessao_view.py
  66. 2
      sapl/sessao/views.py
  67. 2
      sapl/test_urls.py
  68. 2
      sapl/utils.py

2
drfautoapi/drfautoapi.py

@ -12,7 +12,7 @@ from django.db.models.base import ModelBase
from django.db.models.fields import TextField, CharField from django.db.models.fields import TextField, CharField
from django.db.models.fields.files import FileField from django.db.models.fields.files import FileField
from django.template.defaultfilters import capfirst from django.template.defaultfilters import capfirst
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import django_filters import django_filters
from django_filters.constants import ALL_FIELDS, EMPTY_VALUES from django_filters.constants import ALL_FIELDS, EMPTY_VALUES
from django_filters.filters import CharFilter from django_filters.filters import CharFilter

2
sapl/api/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/api/forms.py

@ -2,7 +2,7 @@ import logging
from django.db.models import Q from django.db.models import Q
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django_filters.filters import CharFilter, DateFilter, ModelChoiceFilter from django_filters.filters import CharFilter, DateFilter, ModelChoiceFilter
from django_filters.filterset import FilterSet from django_filters.filterset import FilterSet
from rest_framework import serializers from rest_framework import serializers

2
sapl/audiencia/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/audiencia/forms.py

@ -5,7 +5,7 @@ from datetime import datetime
from django import forms from django import forms
from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.db import transaction from django.db import transaction
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from crispy_forms.layout import Button, Column, Fieldset, HTML, Layout from crispy_forms.layout import Button, Column, Fieldset, HTML, Layout

2
sapl/audiencia/models.py

@ -1,6 +1,6 @@
from django.db import models from django.db import models
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_utils import Choices from model_utils import Choices
from sapl.materia.models import MateriaLegislativa from sapl.materia.models import MateriaLegislativa
from sapl.parlamentares.models import (CargoMesa, Parlamentar) from sapl.parlamentares.models import (CargoMesa, Parlamentar)

2
sapl/base/admin.py

@ -1,6 +1,6 @@
from django.contrib import admin from django.contrib import admin
from django.shortcuts import redirect from django.shortcuts import redirect
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from sapl.base.models import AuditLog from sapl.base.models import AuditLog
from sapl.utils import register_all_models_in_admin from sapl.utils import register_all_models_in_admin

2
sapl/base/apps.py

@ -1,6 +1,6 @@
import django import django
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(django.apps.AppConfig): class AppConfig(django.apps.AppConfig):

2
sapl/base/email_utils.py

@ -11,7 +11,7 @@ from sapl.materia.models import AcompanhamentoMateria
from sapl.protocoloadm.models import AcompanhamentoDocumento from sapl.protocoloadm.models import AcompanhamentoDocumento
from sapl.settings import EMAIL_SEND_USER from sapl.settings import EMAIL_SEND_USER
from sapl.utils import mail_service_configured from sapl.utils import mail_service_configured
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
def load_email_templates(templates, context={}): def load_email_templates(templates, context={}):

2
sapl/base/forms.py

@ -16,7 +16,7 @@ from django.db.models import Q
from django.forms import Form, ModelForm from django.forms import Form, ModelForm
from django.utils import timezone from django.utils import timezone
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import django_filters import django_filters
from haystack.forms import ModelSearchForm from haystack.forms import ModelSearchForm

2
sapl/base/models.py

@ -7,7 +7,7 @@ from django.db import models
from django.db.models.deletion import CASCADE from django.db.models.deletion import CASCADE
from django.db.models.signals import post_migrate from django.db.models.signals import post_migrate
from django.db.utils import DEFAULT_DB_ALIAS from django.db.utils import DEFAULT_DB_ALIAS
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from sapl.utils import (LISTA_DE_UFS, YES_NO_CHOICES, from sapl.utils import (LISTA_DE_UFS, YES_NO_CHOICES,
get_settings_auth_user_model, models_with_gr_for_model) get_settings_auth_user_model, models_with_gr_for_model)

2
sapl/base/receivers.py

@ -14,7 +14,7 @@ from django.db.models.signals import post_delete, post_save, \
from django.db.utils import DEFAULT_DB_ALIAS from django.db.utils import DEFAULT_DB_ALIAS
from django.dispatch import receiver from django.dispatch import receiver
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from sapl.base.email_utils import do_envia_email_tramitacao from sapl.base.email_utils import do_envia_email_tramitacao
from sapl.base.models import AuditLog, TipoAutor, Autor, Metadata from sapl.base.models import AuditLog, TipoAutor, Autor, Metadata

2
sapl/base/templatetags/menus.py

@ -2,7 +2,7 @@ import logging
from django import template from django import template
from django.urls import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import yaml import yaml

2
sapl/base/tests/test_form.py

@ -1,5 +1,5 @@
import pytest import pytest
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from sapl.base.forms import CasaLegislativaForm from sapl.base.forms import CasaLegislativaForm

2
sapl/base/tests/test_view_base.py

@ -2,7 +2,7 @@ import pytest
from model_bakery import baker from model_bakery import baker
import datetime import datetime
from django.urls import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_bakery import baker from model_bakery import baker
from sapl.base.models import Autor, TipoAutor from sapl.base.models import Autor, TipoAutor

2
sapl/base/views.py

@ -24,7 +24,7 @@ from django.utils import timezone
from django.utils.decorators import method_decorator from django.utils.decorators import method_decorator
from django.utils.encoding import force_bytes from django.utils.encoding import force_bytes
from django.utils.http import urlsafe_base64_decode, urlsafe_base64_encode from django.utils.http import urlsafe_base64_decode, urlsafe_base64_encode
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.views.generic import (FormView, ListView) from django.views.generic import (FormView, ListView)
from django.views.generic.base import RedirectView, TemplateView from django.views.generic.base import RedirectView, TemplateView
from django_filters.views import FilterView from django_filters.views import FilterView

2
sapl/comissoes/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/comissoes/forms.py

@ -9,7 +9,7 @@ from django.core.exceptions import ValidationError
from django.db import transaction from django.db import transaction
from django.db.models import Q from django.db.models import Q
from django.forms import ModelForm from django.forms import ModelForm
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.utils import timezone from django.utils import timezone
from sapl.base.models import Autor, TipoAutor from sapl.base.models import Autor, TipoAutor

2
sapl/comissoes/models.py

@ -1,5 +1,5 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_utils import Choices from model_utils import Choices
from sapl.base.models import Autor from sapl.base.models import Autor

2
sapl/comissoes/views.py

@ -10,7 +10,7 @@ from django.views.generic import CreateView, DeleteView, FormView, ListView
from django.views.generic.base import RedirectView from django.views.generic.base import RedirectView
from django.views.generic.detail import DetailView from django.views.generic.detail import DetailView
from django.views.generic.edit import FormMixin, UpdateView from django.views.generic.edit import FormMixin, UpdateView
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django_filters.views import FilterView from django_filters.views import FilterView

2
sapl/compilacao/apps.py

@ -3,7 +3,7 @@ from django import apps
from django.conf import settings from django.conf import settings
from django.db import connection, models from django.db import connection, models
from django.db.utils import DEFAULT_DB_ALIAS, IntegrityError from django.db.utils import DEFAULT_DB_ALIAS, IntegrityError
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/compilacao/forms.py

@ -12,7 +12,7 @@ from django.forms import widgets
from django.forms.forms import Form from django.forms.forms import Form
from django.forms.models import ModelForm from django.forms.models import ModelForm
from django.template import defaultfilters from django.template import defaultfilters
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from image_cropping.widgets import CropWidget, ImageCropWidget from image_cropping.widgets import CropWidget, ImageCropWidget
from model_utils.choices import Choices from model_utils.choices import Choices

2
sapl/compilacao/models.py

@ -10,7 +10,7 @@ from django.template import defaultfilters
from django.utils import timezone from django.utils import timezone
from django.utils.decorators import classonlymethod from django.utils.decorators import classonlymethod
from django.utils.encoding import force_text from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from image_cropping.fields import ImageCropField, ImageRatioField from image_cropping.fields import ImageCropField, ImageRatioField
from sapl.compilacao.utils import (get_integrations_view_names, int_to_letter, from sapl.compilacao.utils import (get_integrations_view_names, int_to_letter,

2
sapl/compilacao/templatetags/compilacao_filters.py

@ -3,7 +3,7 @@ from django import template
from django.core.signing import Signer from django.core.signing import Signer
from django.db.models import Q from django.db.models import Q
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from sapl.compilacao.models import Dispositivo from sapl.compilacao.models import Dispositivo

2
sapl/compilacao/views.py

@ -22,7 +22,7 @@ from django.shortcuts import get_object_or_404, redirect
from django.urls import reverse, reverse_lazy from django.urls import reverse, reverse_lazy
from django.utils.dateparse import parse_date from django.utils.dateparse import parse_date
from django.utils.encoding import force_text from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.views.generic.base import TemplateView from django.views.generic.base import TemplateView
from django.views.generic.detail import DetailView from django.views.generic.detail import DetailView
from django.views.generic.edit import (CreateView, DeleteView, FormView, from django.views.generic.edit import (CreateView, DeleteView, FormView,

2
sapl/context_processors.py

@ -1,7 +1,7 @@
import logging import logging
from django.conf import settings from django.conf import settings
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from sapl.utils import google_recaptcha_configured as google_recaptcha_configured_utils, sapn_is_enabled from sapl.utils import google_recaptcha_configured as google_recaptcha_configured_utils, sapn_is_enabled
from sapl.utils import mail_service_configured as mail_service_configured_utils from sapl.utils import mail_service_configured as mail_service_configured_utils

2
sapl/crud/base.py

@ -16,7 +16,7 @@ from django.shortcuts import redirect
from django.urls import reverse from django.urls import reverse
from django.utils.decorators import classonlymethod from django.utils.decorators import classonlymethod
from django.utils.encoding import force_text from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.views.generic import (CreateView, DeleteView, DetailView, ListView, from django.views.generic import (CreateView, DeleteView, DetailView, ListView,
UpdateView) UpdateView)
from django.views.generic.base import ContextMixin from django.views.generic.base import ContextMixin

2
sapl/decorators.py

@ -1,7 +1,7 @@
from functools import wraps from functools import wraps
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
def vigencia_atual(decorated_method): def vigencia_atual(decorated_method):

2
sapl/lexml/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/lexml/forms.py

@ -1,7 +1,7 @@
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from django.forms import ModelForm from django.forms import ModelForm
from sapl.settings import PROJECT_DIR from sapl.settings import PROJECT_DIR
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from io import StringIO from io import StringIO
from lxml import etree from lxml import etree

2
sapl/lexml/models.py

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

2
sapl/materia/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/materia/forms.py

@ -15,7 +15,7 @@ from django.forms.models import ModelMultipleChoiceField
from django.forms.widgets import CheckboxSelectMultiple, HiddenInput, Select from django.forms.widgets import CheckboxSelectMultiple, HiddenInput, Select
from django.urls import reverse from django.urls import reverse
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import django_filters import django_filters
from sapl.base.models import AppConfig as BaseAppConfig, Autor, TipoAutor from sapl.base.models import AppConfig as BaseAppConfig, Autor, TipoAutor

2
sapl/materia/models.py

@ -8,7 +8,7 @@ from django.db import models
from django.db.models.functions import Concat from django.db.models.functions import Concat
from django.template import defaultfilters from django.template import defaultfilters
from django.utils import formats, timezone from django.utils import formats, timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_utils import Choices from model_utils import Choices
from sapl.base.models import SEQUENCIA_NUMERACAO_PROTOCOLO, Autor from sapl.base.models import SEQUENCIA_NUMERACAO_PROTOCOLO, Autor

2
sapl/materia/views.py

@ -25,7 +25,7 @@ from django.template import loader
from django.urls import reverse from django.urls import reverse
from django.utils import formats, timezone from django.utils import formats, timezone
from django.utils.encoding import force_text from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.views.generic import CreateView, ListView, TemplateView, UpdateView from django.views.generic import CreateView, ListView, TemplateView, UpdateView
from django.views.generic.base import RedirectView from django.views.generic.base import RedirectView
from django.views.generic.edit import FormView from django.views.generic.edit import FormView

2
sapl/norma/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/norma/forms.py

@ -7,7 +7,7 @@ from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.db.models import Q from django.db.models import Q
from django.forms import ModelChoiceField, ModelForm, widgets from django.forms import ModelChoiceField, ModelForm, widgets
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import django_filters import django_filters
from sapl.base.models import TipoAutor from sapl.base.models import TipoAutor

2
sapl/norma/models.py

@ -2,7 +2,7 @@ from django.contrib.contenttypes.fields import GenericRelation
from django.db import models from django.db import models
from django.template import defaultfilters from django.template import defaultfilters
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_utils import Choices from model_utils import Choices
from sapl.base.models import Autor from sapl.base.models import Autor

2
sapl/norma/tests/test_norma.py

@ -1,5 +1,5 @@
from django.urls import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_bakery import baker from model_bakery import baker
import pytest import pytest

2
sapl/norma/views.py

@ -13,7 +13,7 @@ from django.urls import reverse
from django.urls.base import reverse_lazy from django.urls.base import reverse_lazy
from django.utils import timezone from django.utils import timezone
from django.utils.encoding import force_text from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.views.generic import TemplateView, UpdateView from django.views.generic import TemplateView, UpdateView
from django.views.generic.edit import FormView from django.views.generic.edit import FormView
from django_filters.views import FilterView from django_filters.views import FilterView

2
sapl/painel/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/painel/models.py

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

2
sapl/painel/views.py

@ -11,7 +11,7 @@ from django.http import HttpResponse, JsonResponse
from django.http.response import Http404, HttpResponseRedirect from django.http.response import Http404, HttpResponseRedirect
from django.shortcuts import render from django.shortcuts import render
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from sapl.base.models import AppConfig as ConfiguracoesAplicacao from sapl.base.models import AppConfig as ConfiguracoesAplicacao
from sapl.base.models import CasaLegislativa from sapl.base.models import CasaLegislativa

2
sapl/parlamentares/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/parlamentares/forms.py

@ -11,7 +11,7 @@ from django.db import transaction
from django.db.models import Q from django.db.models import Q
from django.forms import ModelForm from django.forms import ModelForm
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import django_filters import django_filters
from image_cropping.widgets import CropWidget, ImageCropWidget from image_cropping.widgets import CropWidget, ImageCropWidget

2
sapl/parlamentares/models.py

@ -1,7 +1,7 @@
from django.db import models from django.db import models
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from image_cropping.fields import ImageCropField, ImageRatioField from image_cropping.fields import ImageCropField, ImageRatioField
from model_utils import Choices from model_utils import Choices
from prompt_toolkit.key_binding.bindings.named_commands import self_insert from prompt_toolkit.key_binding.bindings.named_commands import self_insert

2
sapl/parlamentares/tests/test_parlamentares.py

@ -1,6 +1,6 @@
import pytest import pytest
from django.urls import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_bakery import baker from model_bakery import baker
from sapl.parlamentares.forms import FrenteForm, LegislaturaForm, MandatoForm from sapl.parlamentares.forms import FrenteForm, LegislaturaForm, MandatoForm

2
sapl/parlamentares/views.py

@ -16,7 +16,7 @@ from django.templatetags.static import static
from django.urls import reverse, reverse_lazy from django.urls import reverse, reverse_lazy
from django.utils import timezone from django.utils import timezone
from django.utils.datastructures import MultiValueDictKeyError from django.utils.datastructures import MultiValueDictKeyError
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.views.decorators.clickjacking import xframe_options_exempt from django.views.decorators.clickjacking import xframe_options_exempt
from django.views.generic import FormView from django.views.generic import FormView
from django.views.generic.edit import UpdateView from django.views.generic.edit import UpdateView

2
sapl/protocoloadm/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/protocoloadm/forms.py

@ -11,7 +11,7 @@ from django.db import transaction
from django.db.models import Max from django.db.models import Max
from django.forms import ModelForm from django.forms import ModelForm
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import django_filters import django_filters
from sapl.base.models import Autor, TipoAutor, AppConfig from sapl.base.models import Autor, TipoAutor, AppConfig

2
sapl/protocoloadm/models.py

@ -3,7 +3,7 @@ import re
from django.db import models from django.db import models
from django.utils import timezone from django.utils import timezone
from django.utils.functional import cached_property from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_utils import Choices from model_utils import Choices
from sapl.base.models import Autor, AppConfig as SaplAppConfig from sapl.base.models import Autor, AppConfig as SaplAppConfig

2
sapl/protocoloadm/tests/test_protocoloadm.py

@ -3,7 +3,7 @@ from datetime import date, timedelta
from django.urls import reverse from django.urls import reverse
from django.utils import timezone from django.utils import timezone
from django.utils.encoding import force_text from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_bakery import baker from model_bakery import baker
from urllib.parse import urlencode from urllib.parse import urlencode
import pytest import pytest

2
sapl/protocoloadm/views.py

@ -24,7 +24,7 @@ from django.shortcuts import redirect, get_object_or_404
from django.shortcuts import render from django.shortcuts import render
from django.urls import reverse from django.urls import reverse
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.views.generic import ListView, CreateView, UpdateView from django.views.generic import ListView, CreateView, UpdateView
from django.views.generic.base import RedirectView, TemplateView from django.views.generic.base import RedirectView, TemplateView
from django.views.generic.edit import FormView from django.views.generic.edit import FormView

2
sapl/redireciona_urls/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/relatorios/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/relatorios/forms.py

@ -3,7 +3,7 @@ from crispy_forms.bootstrap import (FormActions)
from crispy_forms.layout import (HTML, Button, Fieldset, from crispy_forms.layout import (HTML, Button, Fieldset,
Layout, Submit) Layout, Submit)
from django import forms from django import forms
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from sapl.audiencia.models import AudienciaPublica from sapl.audiencia.models import AudienciaPublica
from sapl.base.models import Autor from sapl.base.models import Autor

2
sapl/relatorios/views.py

@ -10,7 +10,7 @@ from django.db.models import Count, Q, F
from django.http import Http404, HttpResponse from django.http import Http404, HttpResponse
from django.template.loader import render_to_string from django.template.loader import render_to_string
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.views.generic import TemplateView, ListView from django.views.generic import TemplateView, ListView
from django_filters.views import FilterView from django_filters.views import FilterView
from weasyprint import HTML, CSS from weasyprint import HTML, CSS

2
sapl/rules/__init__.py

@ -1,4 +1,4 @@
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
default_app_config = 'sapl.rules.apps.AppConfig' default_app_config = 'sapl.rules.apps.AppConfig'

2
sapl/rules/apps.py

@ -8,7 +8,7 @@ from django.contrib.auth.management import _get_all_permissions
from django.core import exceptions from django.core import exceptions
from django.db import models, router from django.db import models, router
from django.db.utils import DEFAULT_DB_ALIAS from django.db.utils import DEFAULT_DB_ALIAS
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from sapl.rules import (SAPL_GROUP_ADMINISTRATIVO, SAPL_GROUP_COMISSOES, from sapl.rules import (SAPL_GROUP_ADMINISTRATIVO, SAPL_GROUP_COMISSOES,
SAPL_GROUP_GERAL, SAPL_GROUP_MATERIA, SAPL_GROUP_NORMA, SAPL_GROUP_GERAL, SAPL_GROUP_MATERIA, SAPL_GROUP_NORMA,

2
sapl/rules/tests/test_rules.py

@ -3,7 +3,7 @@ from django.conf import settings
from django.contrib.auth.models import Permission from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.models import ContentType
from django.utils import six from django.utils import six
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import pytest import pytest
from sapl.base.models import CasaLegislativa from sapl.base.models import CasaLegislativa

2
sapl/sessao/apps.py

@ -1,5 +1,5 @@
from django import apps from django import apps
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class AppConfig(apps.AppConfig): class AppConfig(apps.AppConfig):

2
sapl/sessao/forms.py

@ -10,7 +10,7 @@ from django.db import transaction
from django.db.models import Q from django.db.models import Q
from django.forms import ModelForm from django.forms import ModelForm
from django.forms.widgets import CheckboxSelectMultiple from django.forms.widgets import CheckboxSelectMultiple
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import django_filters import django_filters
from sapl.base.models import Autor, TipoAutor from sapl.base.models import Autor, TipoAutor

2
sapl/sessao/models.py

@ -4,7 +4,7 @@ from django.core.exceptions import ValidationError
from django.db import models from django.db import models
from django.db.models import Q, F from django.db.models import Q, F
from django.utils import timezone, formats from django.utils import timezone, formats
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_utils import Choices from model_utils import Choices
from sapl.base.models import Autor from sapl.base.models import Autor

2
sapl/sessao/tests/test_sessao.py

@ -1,7 +1,7 @@
import pytest import pytest
from datetime import datetime from datetime import datetime
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_bakery import baker from model_bakery import baker
from sapl.materia.models import MateriaLegislativa, TipoMateriaLegislativa from sapl.materia.models import MateriaLegislativa, TipoMateriaLegislativa

2
sapl/sessao/tests/test_sessao_view.py

@ -1,6 +1,6 @@
import pytest import pytest
from django.urls import reverse from django.urls import reverse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from model_bakery import baker from model_bakery import baker
from sapl.parlamentares.models import Legislatura, SessaoLegislativa from sapl.parlamentares.models import Legislatura, SessaoLegislativa

2
sapl/sessao/views.py

@ -19,7 +19,7 @@ from django.utils.datastructures import MultiValueDictKeyError
from django.utils.decorators import method_decorator from django.utils.decorators import method_decorator
from django.utils.encoding import force_text from django.utils.encoding import force_text
from django.utils.html import strip_tags from django.utils.html import strip_tags
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.views.decorators.csrf import csrf_exempt from django.views.decorators.csrf import csrf_exempt
from django.views.generic import (FormView, ListView, TemplateView) from django.views.generic import (FormView, ListView, TemplateView)
from django.views.generic.base import RedirectView from django.views.generic.base import RedirectView

2
sapl/test_urls.py

@ -4,7 +4,7 @@ from django.contrib.auth.management import _get_all_permissions
from django.contrib.auth.models import Permission from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.models import ContentType
from django.db import transaction from django.db import transaction
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import pytest import pytest
from sapl.crud.base import PermissionRequiredForAppCrudMixin from sapl.crud.base import PermissionRequiredForAppCrudMixin

2
sapl/utils.py

@ -35,7 +35,7 @@ from django.forms.widgets import SplitDateTimeWidget, ClearableFileInput
from django.http.response import JsonResponse, HttpResponse from django.http.response import JsonResponse, HttpResponse
from django.utils import six, timezone from django.utils import six, timezone
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
import django_filters import django_filters
from easy_thumbnails import source_generators from easy_thumbnails import source_generators
import magic import magic

Loading…
Cancel
Save