remove dict compehension

This commit is contained in:
Aider Ibragimov 2015-03-03 16:45:20 +03:00
parent 5f8338e276
commit 04cc1964bd

View File

@ -672,9 +672,9 @@ class FilePathField(CharField):
)
self.choices = OrderedDict(field.choices)
self.choice_strings_to_values = {
six.text_type(key): key for key in self.choices.keys()
}
self.choice_strings_to_values = dict([
(six.text_type(key), key) for key in self.choices.keys()
])
def to_internal_value(self, data):
if data == '' and self.allow_blank: