Skip to content

Commit

Permalink
pyflakes compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
LGD-Fr committed Aug 30, 2015
1 parent 6497f38 commit d4db38e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions paiji2_shoutbox/tests.py
Expand Up @@ -19,12 +19,11 @@
)


if django.VERSION[0] >= 1 and django.VERSION[1] >= 8:
def reload_object(obj):
def reload_object(obj):
if django.VERSION[0] >= 1 and django.VERSION[1] >= 8:
obj.refresh_from_db()
return obj
else:
def reload_object(obj):
else:
return obj._meta.model.objects.get(pk=obj.pk)


Expand Down
2 changes: 1 addition & 1 deletion paiji2_shoutbox/views.py
@@ -1,5 +1,5 @@
from django.views import generic
from django.core.urlresolvers import reverse
# from django.core.urlresolvers import reverse
from django.http import HttpResponseNotFound
from django.utils.translation import ugettext as _
from django.conf import settings
Expand Down

0 comments on commit d4db38e

Please sign in to comment.