mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-05 05:54:44 +00:00
Clean up E231 errors
This commit is contained in:
parent
2546c758d5
commit
4186b56764
5 changed files with 6 additions and 6 deletions
|
|
@ -63,7 +63,7 @@ class EmailLinkChooserWithLinkTextForm(forms.Form):
|
|||
class LoginForm(AuthenticationForm):
|
||||
username = forms.CharField(
|
||||
max_length=254,
|
||||
widget=forms.TextInput(attrs={'tabindex': '1',}),
|
||||
widget=forms.TextInput(attrs={'tabindex': '1'}),
|
||||
)
|
||||
password = forms.CharField(
|
||||
widget=forms.PasswordInput(attrs={'placeholder': ugettext_lazy("Enter password"),
|
||||
|
|
|
|||
|
|
@ -2105,7 +2105,7 @@ class TestIssue197(TestCase, WagtailTestUtils):
|
|||
# Add some tags and publish using edit view
|
||||
post_data = {
|
||||
'title': "Tagged page",
|
||||
'slug':'tagged-page',
|
||||
'slug': 'tagged-page',
|
||||
'tags': "hello, world",
|
||||
'action-publish': "Publish",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ urlpatterns += [
|
|||
}, name='wagtailadmin_password_reset_confirm',
|
||||
),
|
||||
url(
|
||||
r'^password_reset/complete/$', 'django.contrib.auth.views.password_reset_complete',{
|
||||
r'^password_reset/complete/$', 'django.contrib.auth.views.password_reset_complete', {
|
||||
'template_name': 'wagtailadmin/account/password_reset/complete.html'
|
||||
}, name='wagtailadmin_password_reset_complete'
|
||||
),
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class TextBlock(FieldBlock):
|
|||
@cached_property
|
||||
def field(self):
|
||||
from wagtail.wagtailadmin.widgets import AdminAutoHeightTextInput
|
||||
field_kwargs = {'widget': AdminAutoHeightTextInput(attrs={'rows':self.rows})}
|
||||
field_kwargs = {'widget': AdminAutoHeightTextInput(attrs={'rows': self.rows})}
|
||||
field_kwargs.update(self.field_options)
|
||||
return forms.CharField(**field_kwargs)
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ def create(request, content_type_app_name, content_type_model_name):
|
|||
instance=instance
|
||||
),
|
||||
buttons=[
|
||||
messages.button(reverse('wagtailsnippets_edit', args=(content_type_app_name,content_type_model_name,instance.id,)), _('Edit'))
|
||||
messages.button(reverse('wagtailsnippets_edit', args=(content_type_app_name, content_type_model_name, instance.id)), _('Edit'))
|
||||
]
|
||||
)
|
||||
return redirect('wagtailsnippets_list', content_type.app_label, content_type.model)
|
||||
|
|
@ -181,7 +181,7 @@ def edit(request, content_type_app_name, content_type_model_name, id):
|
|||
instance=instance
|
||||
),
|
||||
buttons=[
|
||||
messages.button(reverse('wagtailsnippets_edit', args=(content_type_app_name,content_type_model_name,instance.id,)), _('Edit'))
|
||||
messages.button(reverse('wagtailsnippets_edit', args=(content_type_app_name, content_type_model_name, instance.id)), _('Edit'))
|
||||
]
|
||||
)
|
||||
return redirect('wagtailsnippets_list', content_type.app_label, content_type.model)
|
||||
|
|
|
|||
Loading…
Reference in a new issue