Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Improved Propaganda admin list view

  • Loading branch information...
commit 41e88991f67857178e82c483e64661b15959c7ad 1 parent 16cca77
Hector Garcia authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  propaganda/admin.py
3  propaganda/admin.py
... ... @@ -1,4 +1,5 @@
1 1 from django.contrib import admin
  2 +from django.utils.translation import ugettext as _
2 3 from propaganda.models import Propaganda, Subscriber, Pamphlet
3 4
4 5
@@ -10,6 +11,8 @@ class PropagandaAdmin(admin.ModelAdmin):
10 11
11 12 def current(self, obj):
12 13 return obj == Propaganda.objects.latest('id')
  14 + current.short_description = _("current")
  15 + current.boolean = True
13 16
14 17
15 18 class SubscriberAdmin(admin.ModelAdmin):

0 comments on commit 41e8899

Please sign in to comment.
Something went wrong with that request. Please try again.