Skip to content

Commit 2d9cc03

Browse files
committed
If we're passed in None, don't try to get the domain name out of it.
- Legacy-Id: 260
1 parent 3cd72bc commit 2d9cc03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/mailinglists/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def mail_type_fields(self):
5252
return field.as_widget(field.field.widget)
5353
def __init__(self, *args, **kwargs):
5454
dname = 'ietf.org'
55-
if args:
55+
if args and args[0]:
5656
dn = 'domain_name'
5757
if kwargs.has_key('prefix'):
5858
dn = kwargs['prefix'] + '-' + dn

0 commit comments

Comments
 (0)