From: Jeremy Kerr Date: Fri, 10 Oct 2008 08:27:24 +0000 (+1100) Subject: [packages] Fix bug with django 1.0 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=f2636b75b63427e0db3945803c492457ea2c9db2;p=patchwork [packages] Fix bug with django 1.0 We needed an extra to_field_name Signed-off-by: Jeremy Kerr --- diff --git a/apps/patchwork/forms.py b/apps/patchwork/forms.py index 10c93a4..f78a105 100644 --- a/apps/patchwork/forms.py +++ b/apps/patchwork/forms.py @@ -114,6 +114,7 @@ class UserProfileForm(forms.ModelForm): class OptionalDelegateField(DelegateField): no_change_choice = ('*', 'no change') + to_field_name = None def __init__(self, no_change_choice = None, *args, **kwargs): self.filter = None