Skip to content

Commit d1207bf

Browse files
committed
Delete some dead code from submission form
- Legacy-Id: 6892
1 parent 771591f commit d1207bf

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

ietf/submit/forms.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -228,28 +228,6 @@ class Meta:
228228
model = Submission
229229
fields = ['title', 'rev', 'document_date', 'pages', 'abstract', 'note']
230230

231-
def get_initial_authors(self):
232-
authors=[]
233-
if self.is_bound:
234-
for key, value in self.data.items():
235-
if key.startswith('name_'):
236-
author = {'errors': {}}
237-
index = key.replace('name_', '')
238-
name = value.strip()
239-
if not name:
240-
author['errors']['name'] = 'This field is required'
241-
email = self.data.get('email_%s' % index, '').strip()
242-
if email and not email_re.search(email):
243-
author['errors']['email'] = 'Enter a valid e-mail address'
244-
if name or email:
245-
author.update({'name': name,
246-
'email': email,
247-
'index': index,
248-
})
249-
authors.append(author)
250-
authors.sort(key=lambda x: x['index'])
251-
return authors
252-
253231
def clean_rev(self):
254232
rev = self.cleaned_data["rev"]
255233

0 commit comments

Comments
 (0)