@property
def form(self):
- return mark_safe(('<input type="text" name="series" ' +
- 'id="series_input" class="form-control">'))
+ return mark_safe('<input type="text" name="series" '
+ 'id="series_input" class="form-control">')
class SubmitterFilter(Filter):
@property
def form(self):
- return mark_safe(('<input type="text" name="submitter" ' +
- 'id="submitter_input" class="form-control">'))
+ return mark_safe('<input type="text" name="submitter" '
+ 'id="submitter_input" class="form-control">')
class StateFilter(Filter):
User.objects.get(username__iexact=value)
except User.DoesNotExist:
return self.cleaned_data['username']
- raise forms.ValidationError('This username is already taken. ' +
+ raise forms.ValidationError('This username is already taken. '
'Please choose another.')
def clean_email(self):
user = User.objects.get(email__iexact=value)
except User.DoesNotExist:
return self.cleaned_data['email']
- raise forms.ValidationError('This email address is already in use ' +
+ raise forms.ValidationError('This email address is already in use '
'for the account "%s".\n' % user.username)
def clean(self):
def parse_pull_request(content):
- git_re = re.compile(r'^The following changes since commit.*' +
+ git_re = re.compile(r'^The following changes since commit.*'
r'^are available in the git repository at:\n'
r'^\s*([\S]+://[^\n]+)$',
re.DOTALL | re.MULTILINE | re.IGNORECASE)
new_states = [Patch.objects.get(pk=p.pk).state for p in self.patches]
self.assertEqual(new_states, orig_states)
self.assertFormError(response, 'patchform', 'state',
- 'Select a valid choice. That choice is not one ' +
+ 'Select a valid choice. That choice is not one '
'of the available choices.')
def _test_delegate_change(self, delegate_str):