|
@@ -152,9 +152,9 @@ class AdherentTypeFilter(admin.SimpleListFilter):
|
|
|
|
|
|
|
|
|
class AdhesionAdmin(admin.ModelAdmin):
|
|
|
- list_display = ('get_id', 'get_adherent_link', 'type',)
|
|
|
- list_filter = (AdherentTypeFilter,)
|
|
|
- fields = ('id', 'type', 'get_adherent_link', 'notes')
|
|
|
+ list_display = ('get_id', 'type', 'get_adherent_link', 'active')
|
|
|
+ list_filter = (AdherentTypeFilter, 'active',)
|
|
|
+ fields = ('id', 'type', 'get_adherent_link', 'active', 'notes')
|
|
|
readonly_fields = ('id', 'type', 'get_adherent_link',)
|
|
|
search_fields = ('=id', 'notes',)
|
|
|
inlines = (ServiceInline,)#PaymentInline,)
|