Commit d6e451ef authored by frekk's avatar frekk

move comment to correct file

parent b1117fa1
...@@ -122,6 +122,11 @@ class MembershipAdmin(admin.ModelAdmin): ...@@ -122,6 +122,11 @@ class MembershipAdmin(admin.ModelAdmin):
# called per record, returns HTML to display under the "Actions" column # called per record, returns HTML to display under the "Actions" column
def member_actions(self, ms): def member_actions(self, ms):
"""
inline admin change list action buttons
see https://medium.com/@hakibenita/how-to-add-custom-action-buttons-to-django-admin-8d266f5b0d41
and have a look at .admin.MembershipAdmin
"""
context = { context = {
'ms': ms, 'ms': ms,
'member': ms.member, 'member': ms.member,
...@@ -153,4 +158,4 @@ class PendingMembershipAdmin(MembershipAdmin): ...@@ -153,4 +158,4 @@ class PendingMembershipAdmin(MembershipAdmin):
admin.site.register(Member, MemberAdmin) admin.site.register(Member, MemberAdmin)
admin.site.register(IncAssocMember, IAMemberAdmin) admin.site.register(IncAssocMember, IAMemberAdmin)
admin.site.register(Membership, MembershipAdmin) admin.site.register(Membership, MembershipAdmin)
#admin.site.register(ProxyMembership, PendingMembershipAdmin) #admin.site.register(ProxyMembership, PendingMembershipAdmin)
\ No newline at end of file
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