More PEP8 changes

This commit is contained in:
Garret Wassermann 2016-10-29 04:20:16 -04:00
parent 1f1d477a35
commit 4cf46156f1
2 changed files with 9 additions and 4 deletions

View File

@ -539,12 +539,15 @@ class UserSettingsForm(forms.Form):
label=_('Number of tickets to show per page'), label=_('Number of tickets to show per page'),
help_text=_('How many tickets do you want to see on the Ticket List page?'), help_text=_('How many tickets do you want to see on the Ticket List page?'),
required=False, required=False,
choices=((10,'10'), (25,'25'), (50,'50'), (100,'100')), choices=((10, '10'), (25, '25'), (50, '50'), (100, '100')),
) )
use_email_as_submitter = forms.BooleanField( use_email_as_submitter = forms.BooleanField(
label=_('Use my e-mail address when submitting tickets?'), label=_('Use my e-mail address when submitting tickets?'),
help_text=_('When you submit a ticket, do you want to automatically use your e-mail address as the submitter address? You can type a different e-mail address when entering the ticket if needed, this option only changes the default.'), help_text=_('When you submit a ticket, do you want to automatically '
'use your e-mail address as the submitter address? You '
'can type a different e-mail address when entering the '
'ticket if needed, this option only changes the default.'),
required=False, required=False,
) )
@ -581,6 +584,7 @@ class TicketCCUserForm(forms.ModelForm):
else: else:
users = User.objects.filter(is_active=True).order_by(User.USERNAME_FIELD) users = User.objects.filter(is_active=True).order_by(User.USERNAME_FIELD)
self.fields['user'].queryset = users self.fields['user'].queryset = users
class Meta: class Meta:
model = TicketCC model = TicketCC
exclude = ('ticket', 'email',) exclude = ('ticket', 'email',)
@ -590,6 +594,7 @@ class TicketCCEmailForm(forms.ModelForm):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(TicketCCEmailForm, self).__init__(*args, **kwargs) super(TicketCCEmailForm, self).__init__(*args, **kwargs)
class Meta: class Meta:
model = TicketCC model = TicketCC
exclude = ('ticket', 'user',) exclude = ('ticket', 'user',)

View File

@ -231,8 +231,8 @@ class Queue(models.Model):
logging_type = models.CharField( logging_type = models.CharField(
_('Logging Type'), _('Logging Type'),
max_length = 5, max_length=5,
choices = ( choices=(
('none', _('None')), ('none', _('None')),
('debug', _('Debug')), ('debug', _('Debug')),
('info', _('Information')), ('info', _('Information')),