Permalink
Browse files

Improved Propaganda admin list view

  • Loading branch information...
1 parent 16cca77 commit 41e88991f67857178e82c483e64661b15959c7ad @nabucosound committed Apr 5, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 propaganda/admin.py
View
3 propaganda/admin.py
@@ -1,4 +1,5 @@
from django.contrib import admin
+from django.utils.translation import ugettext as _
from propaganda.models import Propaganda, Subscriber, Pamphlet
@@ -10,6 +11,8 @@ class PropagandaAdmin(admin.ModelAdmin):
def current(self, obj):
return obj == Propaganda.objects.latest('id')
+ current.short_description = _("current")
+ current.boolean = True
class SubscriberAdmin(admin.ModelAdmin):

0 comments on commit 41e8899

Please sign in to comment.