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:
1 parent
0a814d953b
commit
edc0f2170f
1 file changed
+4
-2
@@ -4,7 +4,7 @@ from entities.models.rotation import Rotation
|
|||||||
class RotationListView(BaseListView):
|
class RotationListView(BaseListView):
|
||||||
model = Rotation
|
model = Rotation
|
||||||
|
|
||||||
template_name = "rotation/rotation_home.html"
|
template_name = "rotation/rotation_list.html"
|
||||||
|
|
||||||
title = "Movimentações"
|
title = "Movimentações"
|
||||||
|
|
||||||
@@ -19,8 +19,9 @@ class RotationListView(BaseListView):
|
|||||||
]
|
]
|
||||||
|
|
||||||
create_url = "entities:rotation:rotation_create"
|
create_url = "entities:rotation:rotation_create"
|
||||||
delete_url = "entities:rotation:rotation_delete"
|
|
||||||
list_url = "entities:rotation:rotation_home"
|
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"]
|
filter_fields = ["id", "batch", "paddock"]
|
||||||
|
|
||||||
@@ -35,6 +36,7 @@ class RotationListView(BaseListView):
|
|||||||
|
|
||||||
context.update({
|
context.update({
|
||||||
"open_rotations": self.open_rotations,
|
"open_rotations": self.open_rotations,
|
||||||
|
"details_url": self.details_url,
|
||||||
})
|
})
|
||||||
|
|
||||||
return context
|
return context
|
||||||
Reference in new issue
Block a user