We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 999b17c commit 8cb9583Copy full SHA for 8cb9583
1 file changed
admin/views/weather_data.py
@@ -50,3 +50,17 @@ class WeatherDataAdmin(OcotilloModelView):
50
"weather_id": "WeatherID",
51
"object_id": "OBJECTID",
52
}
53
+
54
+ # ========== READ ONLY ==========
55
+ enable_publish_actions = (
56
+ False # hides publish/unpublish actions inherited from base
57
+ )
58
59
+ def can_create(self, request) -> bool:
60
+ return False
61
62
+ def can_edit(self, request) -> bool:
63
64
65
+ def can_delete(self, request) -> bool:
66
0 commit comments