Browse Source

Adjust imports sort order

Used:
isort --skip='migrations' --skip='ipython_log.py' -rc .
pull/6/head
Marcio Mazza 10 years ago
parent
commit
7dac9a1848
  1. 4
      painel/urls.py
  2. 16
      painel/views.py

4
painel/urls.py

@ -1,7 +1,7 @@
from django.conf.urls import include, url from django.conf.urls import include, url
from . views import (json_presenca, json_votacao, painel_view, from .views import (json_presenca, json_votacao, painel_parlamentares_view,
painel_parlamentares_view, painel_votacao_view) painel_view, painel_votacao_view)
urlpatterns = [ urlpatterns = [
url(r'^sistema/painel$', painel_view), url(r'^sistema/painel$', painel_view),

16
painel/views.py

@ -1,13 +1,13 @@
from django.shortcuts import render
from django.http import HttpResponse
from django.http import JsonResponse
from django.core import serializers
import json import json
from parlamentares.models import Parlamentar from django.core import serializers
from parlamentares.models import Filiacao from django.http import HttpResponse, JsonResponse
from sessao.models import SessaoPlenaria, SessaoPlenariaPresenca, PresencaOrdemDia, RegistroVotacao, VotoParlamentar, OrdemDia, PresencaOrdemDia from django.shortcuts import render
from parlamentares.models import Filiacao, Parlamentar
from sessao.models import (OrdemDia, PresencaOrdemDia, RegistroVotacao,
SessaoPlenaria, SessaoPlenariaPresenca,
VotoParlamentar)
# REST web services # REST web services

Loading…
Cancel
Save