1
私はdjangoチャンネルが新しく、この特定のバインディングクラスのdatetimeフィールドのフォーマットを変更する方法についていません。djangoチャンネルはdatetimeフィールドの時間フォーマットを変更します
クラスInfoBinding(WebsocketBinding):
model =Info
stream = "stream"
fields = ["time_stamp"]
@classmethod
def group_names(cls, *args, **kwargs):
return ["binding.values"]
def has_permission(self, user, action, pk):
# print(self.time_stamp)
return True
has_permissionは、入力メッセージからdjangoのモデルを更新するためのものです –