|
@@ -307,10 +307,11 @@ class ServiceAdmin(admin.ModelAdmin):
|
|
|
list_select_related = ('adhesion', 'adhesion__user', 'adhesion__user__profile', 'adhesion__corporation', 'service_type',)
|
|
|
list_filter = (
|
|
|
ActiveServiceFilter,
|
|
|
+ 'loan_equipment',
|
|
|
('service_type', admin.RelatedOnlyFieldListFilter),
|
|
|
)
|
|
|
search_fields = ('=id', 'service_type__name', 'label', 'notes',)
|
|
|
- fields = ('adhesion', 'service_type', 'label', 'notes', 'get_contribution_link', 'is_active',)
|
|
|
+ fields = ('adhesion', 'service_type', 'label', 'notes', 'loan_equipment', 'get_contribution_link', 'is_active',)
|
|
|
readonly_fields = ('get_contribution_link', 'is_active',)
|
|
|
raw_id_fields = ('adhesion',)
|
|
|
|