Skip to content

Commit

Permalink
plac8
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamu committed Dec 1, 2017
1 parent d1f2f4c commit 338a7f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions pinax/testimonials/admin.py
Expand Up @@ -5,11 +5,15 @@

def make_active(modeladmin, request, queryset):
queryset.update(active=True)


make_active.short_description = "Mark as Active"


def make_inactive(modeladmin, request, queryset):
queryset.update(active=False)


make_inactive.short_description = "Mark as Inactive"


Expand Down
1 change: 0 additions & 1 deletion pinax/testimonials/templatetags/pinax_testimonials_tags.py
Expand Up @@ -2,7 +2,6 @@

from ..models import Testimonial


register = template.Library()


Expand Down
11 changes: 6 additions & 5 deletions pinax/testimonials/tests/tests.py
@@ -1,11 +1,12 @@
from django.test import TestCase

from ..models import Testimonial
from ..templatetags.pinax_testimonials_tags import (
random_testimonials as random_testimonials_tag,
random_testimonial as random_testimonial_tag,
testimonials as testimonials_tag,
)
from ..templatetags.pinax_testimonials_tags import \
random_testimonial as random_testimonial_tag
from ..templatetags.pinax_testimonials_tags import \
random_testimonials as random_testimonials_tag
from ..templatetags.pinax_testimonials_tags import \
testimonials as testimonials_tag


class TestTags(TestCase):
Expand Down

0 comments on commit 338a7f2

Please sign in to comment.