feat: enstat update权限
This commit is contained in:
parent
005b5c1057
commit
5572b4cb0f
|
@ -236,7 +236,7 @@ class EnStatViewSet(CustomListModelMixin, BulkUpdateModelMixin, CustomGenericVi
|
||||||
能耗统计记录
|
能耗统计记录
|
||||||
"""
|
"""
|
||||||
|
|
||||||
perms_map = {"get": "*"}
|
perms_map = {"get": "*", "put": "enstat.update"}
|
||||||
queryset = EnStat.objects.all()
|
queryset = EnStat.objects.all()
|
||||||
serializer_class = EnStatSerializer
|
serializer_class = EnStatSerializer
|
||||||
select_related_fields = ["mgroup", "team", "mgroup__belong_dept"]
|
select_related_fields = ["mgroup", "team", "mgroup__belong_dept"]
|
||||||
|
|
Loading…
Reference in New Issue