File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11from django .contrib import admin
2- from django .views .generic import RedirectView
2+ from django .views .generic . base import RedirectView
33from django .urls import path , include
44
55urlpatterns = [
66 path ("admin/" , admin .site .urls ),
7- path ("" , RedirectView .as_view (url = "/pacientes/ " , permanent = True )),
7+ path ("" , RedirectView .as_view (url = "/pacientes" , permanent = True )),
88 path ("transportes/" , include ("transportes.urls" )),
99 path ("pacientes/" , include ("pacientes.urls" )),
1010 path ("condicoes/" , include ("condicoes.urls" )),
Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ def validar_cancelamento(self, data_agendada: datetime) -> None:
1919
2020 hora = data_atual .time ().hour
2121
22- if duration .days < 1 :
22+ # if duration.days < 1:
2323
24- raise errors .CancelarTransporteError (
25- "Ação não permitida, período limite excedito para o cancelamento" ,
26- "O LIMITE PARA CANCELAMENTO É PERMITIDO ATÉ COM 1 DIA DE ANTECEDÊNCIA" ,
27- )
24+ # raise errors.CancelarTransporteError(
25+ # "Ação não permitida, período limite excedito para o cancelamento",
26+ # "O LIMITE PARA CANCELAMENTO É PERMITIDO ATÉ COM 1 DIA DE ANTECEDÊNCIA",
27+ # )
2828
29- elif duration .days == 1 and hora >= 18 :
29+ # elif duration.days == 1 and hora >= 18:
3030
31- raise errors .CancelarTransporteError (
32- "Ação não permitida, limite de horário excedido" ,
33- "O CANCELAMENTO PARA ATÉ 1 DIA DE ANTECENDÊNCIA É PERMITIDO ATÉ ÀS 18HRS" ,
34- )
31+ # raise errors.CancelarTransporteError(
32+ # "Ação não permitida, limite de horário excedido",
33+ # "O CANCELAMENTO PARA ATÉ 1 DIA DE ANTECENDÊNCIA É PERMITIDO ATÉ ÀS 18HRS",
34+ # )
Original file line number Diff line number Diff line change 11from django .shortcuts import render
2- from django .contrib .auth .decorators import login_required
2+ # from django.contrib.auth.decorators import login_required
33from usuarios .forms import UsuarioForm
44
55
You can’t perform that action at this time.
0 commit comments