From d1207bf000a93f718d18d77ec51ee2dd40665784 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Thu, 12 Dec 2013 12:08:58 +0000 Subject: [PATCH] Delete some dead code from submission form - Legacy-Id: 6892 --- ietf/submit/forms.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/ietf/submit/forms.py b/ietf/submit/forms.py index 5aaff363e..1ffaf0c0f 100644 --- a/ietf/submit/forms.py +++ b/ietf/submit/forms.py @@ -228,28 +228,6 @@ class EditSubmissionForm(forms.ModelForm): model = Submission fields = ['title', 'rev', 'document_date', 'pages', 'abstract', 'note'] - def get_initial_authors(self): - authors=[] - if self.is_bound: - for key, value in self.data.items(): - if key.startswith('name_'): - author = {'errors': {}} - index = key.replace('name_', '') - name = value.strip() - if not name: - author['errors']['name'] = 'This field is required' - email = self.data.get('email_%s' % index, '').strip() - if email and not email_re.search(email): - author['errors']['email'] = 'Enter a valid e-mail address' - if name or email: - author.update({'name': name, - 'email': email, - 'index': index, - }) - authors.append(author) - authors.sort(key=lambda x: x['index']) - return authors - def clean_rev(self): rev = self.cleaned_data["rev"]