If we're passed in None, don't try to get the domain name out of it.

- Legacy-Id: 260
This commit is contained in:
Bill Fenner 2007-06-08 15:48:09 +00:00
parent 3cd72bc1fe
commit 2d9cc036a6

View file

@ -52,7 +52,7 @@ class ListReqStep1(forms.Form):
return field.as_widget(field.field.widget)
def __init__(self, *args, **kwargs):
dname = 'ietf.org'
if args:
if args and args[0]:
dn = 'domain_name'
if kwargs.has_key('prefix'):
dn = kwargs['prefix'] + '-' + dn