File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11from django .contrib import admin
22from django .db import models
33
4- from sponsor .models import Sponsor , SponsorLevel
4+ from sponsor .models import Sponsor , SponsorLevel , PersonalSponsorship
55from sponsor .resources import SponsorResource
66
77from import_export .admin import ImportExportModelAdmin
@@ -71,6 +71,13 @@ def get_queryset(self, request):
7171
7272# admin.site.register(SponsorProxyModel, SponsorAdmin4Modusign)
7373
74- class PersonalSponsorship (ImportExportModelAdmin ):
75- list_display = ("name" , "amount" ,)
74+
75+ class PersonalSponsorshipAdmin (ImportExportModelAdmin ):
76+ list_display = (
77+ "name" ,
78+ "amount" ,
79+ )
7680 ordering = ("-amount" ,)
81+
82+
83+ admin .site .register (PersonalSponsorship , PersonalSponsorshipAdmin )
You can’t perform that action at this time.
0 commit comments