|
@@ -58,7 +58,7 @@ class CorporationAdmin(admin.ModelAdmin):
|
|
|
inlines = (AdherentInline,)
|
|
|
|
|
|
def adherent_id(self, corporation):
|
|
|
- adherent = corporation.adherent
|
|
|
+ adherent = corporation.adhesion
|
|
|
if adherent:
|
|
|
return adherent.id
|
|
|
adherent_id.short_description = 'Numéro d’adhérent'
|