Commit 888b8bf7 authored by okhin's avatar okhin 🚴

More qa to fix.

parent 23992fb6
Pipeline #1101 passed with stage
in 9 minutes and 14 seconds
......@@ -23,7 +23,8 @@ class RecommendationStackedInline(nested_admin.NestedStackedInline):
min_num = 1
max_num = 1
fields = ('title', 'description',
'recommendation', 'weight', 'id', 'proposal',)
'recommendation', 'weight',
'id', 'proposal',)
form = RecommendationForm
......@@ -35,8 +36,8 @@ class ProposalAdmin(nested_admin.NestedModelAdmin):
'kind')
search_fields = ('reference', 'dossier__reference', 'title')
inlines = [
RecommendationStackedInline,
]
RecommendationStackedInline,
]
def dossier_reference(self, obj):
return obj.dossier.reference
......@@ -51,16 +52,16 @@ class ProposalStackedInline(nested_admin.NestedStackedInline):
fields = ('title', 'description',)
show_change_link = True
inlines = [
RecommendationStackedInline,
]
RecommendationStackedInline,
]
class DossierAdmin(nested_admin.NestedModelAdmin):
list_display = ('id', 'reference', 'title')
search_fields = ('reference', 'title')
inlines = [
ProposalStackedInline,
]
ProposalStackedInline,
]
class NoneMatchingFilter(admin.SimpleListFilter):
......
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