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