Skip to content

Commit 8ceac5a

Browse files
committed
Fix ranking widget without hotel lottery config
1 parent 82e9951 commit 8ceac5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uber/forms/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def render_option(cls, value, label, selected, **kwargs):
106106

107107
class Ranking():
108108
def __init__(self, choices=None, **kwargs):
109-
self.choices = choices or self.field.choices
109+
self.choices = choices
110110
super().__init__(**kwargs)
111111

112112
def extra_info_list(self, choice_item, show_staff_rates=False):

0 commit comments

Comments
 (0)