Permalink
Browse files

Fixing one of the last batchse of pep8 and pylint bugs.

  • Loading branch information...
1 parent 8e8bcdf commit 6e9a423c630683b004cffcfe455da08b04b9e27b @overshard committed May 12, 2012
Showing with 9 additions and 8 deletions.
  1. +4 −1 pinry/api/tests.py
  2. +4 −5 pinry/core/templatetags/bootstrap_field.py
  3. +1 −2 pinry/pins/models.py
View
5 pinry/api/tests.py
@@ -1,6 +1,9 @@
from django.test import TestCase
from django.test.client import Client
-from django.core.urlresolvers import reverse
+
+
+# pylint: disable-msg=R0904
+# pylint: disable-msg=E1103
class RecentPinsTest(TestCase):
View
9 pinry/core/templatetags/bootstrap_field.py
@@ -1,11 +1,10 @@
-from django import template
-from django.template import loader, Context
+from django.template import loader, Context, Library
-register = template.Library()
+register = Library()
@register.simple_tag
def bootstrap_field(field):
- t = loader.get_template('core/templatetags/bootstrap_field.html')
- return t.render(Context({'field': field}))
+ template = loader.get_template('core/templatetags/bootstrap_field.html')
+ return template.render(Context({'field': field}))
View
3 pinry/pins/models.py
@@ -1,5 +1,4 @@
from django.db import models
-from django.template.defaultfilters import slugify
from django.core.files import File
from django.core.files.temp import NamedTemporaryFile
@@ -11,7 +10,7 @@
class Pin(models.Model):
url = models.TextField()
description = models.TextField(blank=True, null=True)
- image = ImageWithThumbsField(upload_to='pins/pin', sizes=((200,1000), ))
+ image = ImageWithThumbsField(upload_to='pins/pin', sizes=((200, 1000),))
def __unicode__(self):
return self.url

0 comments on commit 6e9a423

Please sign in to comment.