Commit 04cc1964 by Aider Ibragimov

remove dict compehension

parent 5f8338e2
...@@ -672,9 +672,9 @@ class FilePathField(CharField): ...@@ -672,9 +672,9 @@ class FilePathField(CharField):
) )
self.choices = OrderedDict(field.choices) self.choices = OrderedDict(field.choices)
self.choice_strings_to_values = { self.choice_strings_to_values = dict([
six.text_type(key): key for key in self.choices.keys() (six.text_type(key), key) for key in self.choices.keys()
} ])
def to_internal_value(self, data): def to_internal_value(self, data):
if data == '' and self.allow_blank: if data == '' and self.allow_blank:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment