Kaydet (Commit) 5fda9c98 authored tarafından Baptiste Mispelon's avatar Baptiste Mispelon

Fixed #21423 -- Fixed typo in widgets.py.

üst d8712765
...@@ -656,7 +656,7 @@ class ChoiceFieldRenderer(object): ...@@ -656,7 +656,7 @@ class ChoiceFieldRenderer(object):
self.choices = choices self.choices = choices
def __getitem__(self, idx): def __getitem__(self, idx):
choice = self.choices[idx] # Let the IndexError propogate choice = self.choices[idx] # Let the IndexError propagate
return self.choice_input_class(self.name, self.value, self.attrs.copy(), choice, idx) return self.choice_input_class(self.name, self.value, self.attrs.copy(), choice, idx)
def __str__(self): def __str__(self):
......
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