consider the settings when evaluating anonymity settings, not the value (which
is broken btw)
This commit is contained in:
parent
7643e166ba
commit
d9d2a9f8fd
|
@ -77,9 +77,9 @@ class VoteAnonymityField(WidgetField):
|
|||
kwargs['vote_anonymity'] = self.vote_anonymity
|
||||
|
||||
def get_view_value(self, value):
|
||||
if value[0] == 'anonymous':
|
||||
if self.vote_anonymity == 'anonymous':
|
||||
return _('Anonymous') # XXX: include token?
|
||||
elif value[0] == 'public':
|
||||
elif self.vote_anonymity == 'public':
|
||||
return get_publisher().user_class.get(value[1]).get_display_name()
|
||||
else:
|
||||
raise
|
||||
|
|
Loading…
Reference in New Issue