Browse Source

fix adherents → adhesions

Élie Bouttier 8 years ago
parent
commit
1b3393252b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      adhesions/admin.py
  2. 1 1
      services/views.py

+ 1 - 1
adhesions/admin.py

@@ -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'

+ 1 - 1
services/views.py

@@ -7,5 +7,5 @@ from .models import Service
 
 class ServiceList(LoginRequiredMixin, ListView):
     def get_queryset(self):
-        return Service.objects.filter(adherent=self.request.user.profile.adherents) \
+        return Service.objects.filter(adherent=self.request.user.profile.adhesions) \
                     .order_by('-start')