[Update] 修改terminal表单获取storage, 删除无用代码

This commit is contained in:
BaiJiangJie
2018-10-24 10:11:38 +08:00
parent cc0cf8ed1c
commit 1bfef829f3
2 changed files with 2 additions and 20 deletions

View File

@@ -10,21 +10,15 @@ from .models import Terminal
def get_all_command_storage():
from common import utils
command_storage = utils.get_command_storage_or_create_default_storage()
command_storage_choice = []
for k, v in command_storage.items():
command_storage_choice.append((k, k))
return command_storage_choice
yield (k, k)
def get_all_replay_storage():
from common import utils
replay_storage = utils.get_replay_storage_or_create_default_storage()
replay_storage_choice = []
for k, v in replay_storage.items():
replay_storage_choice.append((k, k))
return replay_storage_choice
yield (k, k)
class TerminalForm(forms.ModelForm):