Created
August 2, 2016 08:48
-
-
Save fengxuway/c3df66a82737b01d20328e126d917473 to your computer and use it in GitHub Desktop.
django forms类获取列表数据
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FileTransferForm(forms.Form): | |
name = forms.CharField() | |
file_path = forms.CharField() | |
dest = forms.CharField() | |
user = forms.CharField() | |
server_ids = forms.CharField() | |
def clean_server_ids(self): | |
return self.data.getlist('server_ids', []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment