Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improved Propaganda admin list view

  • Loading branch information...
commit 41e88991f67857178e82c483e64661b15959c7ad 1 parent 16cca77
Hector Garcia authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  propaganda/admin.py
3  propaganda/admin.py
View
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.