Browse Source

Remove admin views of membership fees

Managing fees could be done in member detail view, which seems more convenient.
Jocelyn Delalande 6 years ago
parent
commit
b718945a97
1 changed files with 0 additions and 7 deletions
  1. 0 7
      coin/members/admin.py

+ 0 - 7
coin/members/admin.py

@@ -19,7 +19,6 @@ from coin.members.models import (
     Member, CryptoKey, LdapUser, MembershipFee, Offer, OfferSubscription, RowLevelPermission)
     Member, CryptoKey, LdapUser, MembershipFee, Offer, OfferSubscription, RowLevelPermission)
 from coin.members.forms import AdminMemberChangeForm, MemberCreationForm
 from coin.members.forms import AdminMemberChangeForm, MemberCreationForm
 from coin.utils import delete_selected
 from coin.utils import delete_selected
-import autocomplete_light
 
 
 
 
 class CryptoKeyInline(admin.StackedInline):
 class CryptoKeyInline(admin.StackedInline):
@@ -354,11 +353,6 @@ class MemberAdmin(UserAdmin):
     bulk_send_call_for_membership_fee_email.short_description = 'Envoyer le courriel de relance de cotisation'
     bulk_send_call_for_membership_fee_email.short_description = 'Envoyer le courriel de relance de cotisation'
 
 
 
 
-class MembershipFeeAdmin(admin.ModelAdmin):
-    list_display = ('member', 'end_date', 'amount', 'payment_method',
-                    'payment_date')
-    form = autocomplete_light.modelform_factory(MembershipFee, fields='__all__')
-
 class RowLevelPermissionAdmin(admin.ModelAdmin):
 class RowLevelPermissionAdmin(admin.ModelAdmin):
     def get_changeform_initial_data(self, request):
     def get_changeform_initial_data(self, request):
         return {'content_type': ContentType.objects.get_for_model(OfferSubscription)}
         return {'content_type': ContentType.objects.get_for_model(OfferSubscription)}
@@ -366,7 +360,6 @@ class RowLevelPermissionAdmin(admin.ModelAdmin):
 
 
 
 
 admin.site.register(Member, MemberAdmin)
 admin.site.register(Member, MemberAdmin)
-admin.site.register(MembershipFee, MembershipFeeAdmin)
 # admin.site.unregister(Group)
 # admin.site.unregister(Group)
 # admin.site.register(LdapUser, LdapUserAdmin)
 # admin.site.register(LdapUser, LdapUserAdmin)
 admin.site.register(RowLevelPermission, RowLevelPermissionAdmin)
 admin.site.register(RowLevelPermission, RowLevelPermissionAdmin)