|
@@ -74,6 +74,7 @@ class AdherentAdmin(admin.ModelAdmin):
|
|
|
class CorporationAdmin(admin.ModelAdmin):
|
|
|
list_display = ('social_reason', 'adherent_id')
|
|
|
inlines = (AdherentInline,)
|
|
|
+ search_fields = ('social_reason',)
|
|
|
|
|
|
def adherent_id(self, corporation):
|
|
|
adherent = corporation.adhesion
|