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

18 lines
419 B
Python
Raw Normal View History

from django.contrib import admin
from . import models
class FundraisingGoalAdmin(admin.ModelAdmin):
2015-03-09 06:00:32 +00:00
list_display = ('fundraiser_code_name', 'fundraiser_goal_amount')
2018-11-18 18:59:53 +00:00
class GoalProviderAdmin(admin.ModelAdmin):
fields = [
'fundraising_goal',
'provider_name',
]
admin.site.register(models.FundraisingGoal, FundraisingGoalAdmin)
admin.site.register(models.GoalProvider, GoalProviderAdmin)