Alter RotationListView

Alterado o nome do template rotation_home para rotation_list seguindo o padrão das demais ListViews e suas respectivas rotas HTTP
This commit is contained in:
Eberton committed 2026-05-28 23:24:05 -03:00
1 parent 0a814d953b
commit edc0f2170f
1 file changed
+4 -2
@@ -4,7 +4,7 @@ from entities.models.rotation import Rotation
class RotationListView(BaseListView):
model = Rotation
template_name = "rotation/rotation_home.html"
template_name = "rotation/rotation_list.html"
title = "Movimentações"
@@ -19,8 +19,9 @@ class RotationListView(BaseListView):
]
create_url = "entities:rotation:rotation_create"
delete_url = "entities:rotation:rotation_delete"
list_url = "entities:rotation:rotation_home"
delete_url = "entities:rotation:rotation_delete"
details_url = "entities:rotation:rotation_home" # Trocar pela url de detalhe
filter_fields = ["id", "batch", "paddock"]
@@ -35,6 +36,7 @@ class RotationListView(BaseListView):
context.update({
"open_rotations": self.open_rotations,
"details_url": self.details_url,
})
return context