From edc0f2170f13a7f383860f24179adf215f0722b1 Mon Sep 17 00:00:00 2001 From: Eberton Kociba Date: Thu, 28 May 2026 23:24:05 -0300 Subject: [PATCH] Alter RotationListView MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alterado o nome do template rotation_home para rotation_list seguindo o padrão das demais ListViews e suas respectivas rotas HTTP --- multigranja/apps/entities/views/list/rotation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/multigranja/apps/entities/views/list/rotation.py b/multigranja/apps/entities/views/list/rotation.py index 36b57a1..01ab69b 100644 --- a/multigranja/apps/entities/views/list/rotation.py +++ b/multigranja/apps/entities/views/list/rotation.py @@ -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 \ No newline at end of file