PEP8 cleanup
authorEriol
Tue, 16 Nov 2010 15:15:55 +0100
changeset 441e83f485ab79
parent 43 d92a88f7c022
child 45 e81b4c3bb421
PEP8 cleanup
microcms/admin.py
     1.1 --- a/microcms/admin.py	Tue Nov 16 15:01:44 2010 +0100
     1.2 +++ b/microcms/admin.py	Tue Nov 16 15:15:55 2010 +0100
     1.3 @@ -19,10 +19,12 @@
     1.4  from microcms import settings as micro_settings
     1.5  from microcms.models import Page
     1.6  
     1.7 +
     1.8  class PageForm(FlatpageForm):
     1.9      class Meta:
    1.10          model = Page
    1.11  
    1.12 +
    1.13  class PageAdmin(FlatPageAdmin):
    1.14      form = PageForm
    1.15  
    1.16 @@ -38,9 +40,7 @@
    1.17           {'classes': ('collapse closed',),
    1.18            'fields': ('enable_comments',
    1.19                       'registration_required',
    1.20 -                     'template_name')
    1.21 -         }
    1.22 -        ),
    1.23 +                     'template_name')}),
    1.24  
    1.25          (_('Search Engine Optimization'),
    1.26           {'classes': ('collapse closed',), 'fields': ('meta_keywords',
    1.27 @@ -49,14 +49,11 @@
    1.28  
    1.29      formfield_overrides = {
    1.30          models.TextField:
    1.31 -            {'widget': forms.Textarea(attrs={'class':'ckeditor',})},
    1.32 +            {'widget': forms.Textarea(attrs={'class': 'ckeditor'})},
    1.33      }
    1.34  
    1.35      class Media:
    1.36 -        css = {
    1.37 -            'all': micro_settings.MICROCMS_CUSTOM_CSS
    1.38 -        }
    1.39 -
    1.40 +        css = {'all': micro_settings.MICROCMS_CUSTOM_CSS}
    1.41          js = [micro_settings.CKEDITOR_URL]
    1.42  
    1.43      def save_model(self, request, obj, form, change):