Skip to content

Commit a971124

Browse files
committed
Permit unicode milestone text (using unicode() instead of str() in comparison when looking for milestone changes). Fixes issue ietf-tools#1065.
- Legacy-Id: 5809
1 parent f503376 commit a971124

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/wginfo/milestones.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def __init__(self, *args, **kwargs):
9393
self.docs_prepopulate = json_doc_names(self.docs_names)
9494

9595
# calculate whether we've changed
96-
self.changed = self.is_bound and (not self.milestone or any(str(self[f].data) != str(self.initial[f]) for f in self.fields.iterkeys()))
96+
self.changed = self.is_bound and (not self.milestone or any(unicode(self[f].data) != unicode(self.initial[f]) for f in self.fields.iterkeys()))
9797

9898
def clean_docs(self):
9999
s = self.cleaned_data["docs"]

0 commit comments

Comments
 (0)