Permit unicode milestone text (using unicode() instead of str() in comparison when looking for milestone changes). Fixes issue #1065.

- Legacy-Id: 5809
This commit is contained in:
Henrik Levkowetz 2013-07-11 21:36:31 +00:00
parent f50337695e
commit a971124ac1

View file

@ -93,7 +93,7 @@ class MilestoneForm(forms.Form):
self.docs_prepopulate = json_doc_names(self.docs_names)
# calculate whether we've changed
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()))
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()))
def clean_docs(self):
s = self.cleaned_data["docs"]