Various small fixes for the reddit decouple

This commit is contained in:
2010-12-20 12:43:02 +00:00
parent cc4f986edb
commit 279948c330
8 changed files with 15 additions and 10 deletions

View File

@@ -118,10 +118,10 @@ class UserLookupForm(forms.Form):
type = forms.ChoiceField(label = u'Search type', choices = choices)
username = forms.CharField(label = u'User ID', max_length=64)
def __init__(self):
def __init__(self, *args, **kwargs):
if installed('reddit'):
self.choices.append((3, "Reddit ID"))
forms.Form.__init__(self)
forms.Form.__init__(self, *args, **kwargs)
class APIPasswordForm(forms.Form):