Files @ 027964192a65
Branch filter:

Location: website/www/conservancy/apps/fundgoal/admin.py

bkuhn
Function to compute how far to the goal we are.

This is also inserted by the Javascript code as well, but no reason we
can't compute it server side, too.
1
2
3
4
5
6
7
from django.contrib import admin
from conservancy.apps.fundgoal.models import FundraisingGoal

class FundraisingGoalAdmin(admin.ModelAdmin):
    list_display = ('display_name', 'display_until_date')

admin.site.register(FundraisingGoal, FundraisingGoalAdmin)