mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Various small fixes for the reddit decouple
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user