Commit b718945a authored by jocelyn's avatar jocelyn

Remove admin views of membership fees

Managing fees could be done in member detail view, which seems more convenient.
parent 131adcd3
......@@ -19,7 +19,6 @@ from coin.members.models import (
Member, CryptoKey, LdapUser, MembershipFee, Offer, OfferSubscription, RowLevelPermission)
from coin.members.forms import AdminMemberChangeForm, MemberCreationForm
from coin.utils import delete_selected
import autocomplete_light
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'
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):
def get_changeform_initial_data(self, request):
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(MembershipFee, MembershipFeeAdmin)
# admin.site.unregister(Group)
# admin.site.register(LdapUser, LdapUserAdmin)
admin.site.register(RowLevelPermission, RowLevelPermissionAdmin)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment