PEP8 cleanups, remove unused imports

This commit is contained in:
Roberto Rosario
2012-01-17 16:40:30 -04:00
parent 93fc581ba0
commit 1a285d56dc
12 changed files with 15 additions and 27 deletions

View File

@@ -5,7 +5,6 @@ import tempfile
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth import models as auth_models
from django.contrib.auth.management import create_superuser
from django.db.models import signals
from django.dispatch import receiver
from django.db.models.signals import post_syncdb

View File

@@ -120,7 +120,8 @@ class ScrollableCheckboxSelectMultiple(forms.widgets.CheckboxSelectMultiple):
exceds the height of the div
'''
def render(self, name, value, attrs=None, choices=()):
if value is None: value = []
if value is None:
value = []
has_id = attrs and 'id' in attrs
final_attrs = self.build_attrs(attrs, name=name)
output = [u'<ul class="undecorated_list" style="margin-left: 5px; margin-top: 3px; margin-bottom: 3px;">']