algochannel bug

This commit is contained in:
曹前明 2022-08-30 12:20:49 +08:00
parent 244c220cc7
commit f0ea7955d4
2 changed files with 4 additions and 1 deletions

View File

@ -235,4 +235,7 @@ class TestViewSet(CustomGenericViewSet):
if 'event' in datas:
from apps.ecm.models import Event
Event.objects.get_queryset(all=True).delete(soft=False)
if 'opm' in datas:
from apps.opm.models import Operation
Operation.objects.all().delete()
return Response()

View File

@ -115,7 +115,7 @@ class RemindSerializer(CustomModelSerializer):
class AlgoChannelCreateSerializer(CustomModelSerializer):
class Meta:
model = AlgoChannel
fields = ['algo', 'vchannel', 'snap_on']
fields = ['algo', 'vchannel', 'always_on']
class AlgoChannelCreatesSerializer(CustomModelSerializer):