|
@@ -178,6 +178,14 @@ class MemberAdmin(UserAdmin):
|
|
return mark_safe()
|
|
return mark_safe()
|
|
enhanced_end_date_of_membership.short_description = "Date de fin d'adhésion"
|
|
enhanced_end_date_of_membership.short_description = "Date de fin d'adhésion"
|
|
|
|
|
|
|
|
+ def get_list_display(self, request, obj=None):
|
|
|
|
+ list_display = list(self.list_display[:]) # Copy
|
|
|
|
+
|
|
|
|
+ if settings.HANDLE_BALANCE:
|
|
|
|
+ list_display.append('balance')
|
|
|
|
+
|
|
|
|
+ return list_display
|
|
|
|
+
|
|
def get_fieldsets(self, request, obj=None):
|
|
def get_fieldsets(self, request, obj=None):
|
|
coord_fieldset = ('Coordonnées', {'fields': (
|
|
coord_fieldset = ('Coordonnées', {'fields': (
|
|
('email', 'send_membership_fees_email'),
|
|
('email', 'send_membership_fees_email'),
|