|
@@ -45,10 +45,15 @@ class Member(CoinLdapSyncMixin, AbstractUser):
|
|
('natural_person', 'Personne physique'),
|
|
('natural_person', 'Personne physique'),
|
|
('legal_entity', 'Personne morale'),
|
|
('legal_entity', 'Personne morale'),
|
|
)
|
|
)
|
|
|
|
+
|
|
|
|
+ MEMBER_STATUS_MEMBER = 'member'
|
|
|
|
+ MEMBER_STATUS_NOT_MEMBER = 'not_member'
|
|
|
|
+ MEMBER_STATUS_PENDING = 'pending'
|
|
|
|
+
|
|
MEMBER_STATUS_CHOICES = (
|
|
MEMBER_STATUS_CHOICES = (
|
|
- ('member', 'Adhérent'),
|
|
|
|
- ('not_member', 'Non adhérent'),
|
|
|
|
- ('pending', "Demande d'adhésion"),
|
|
|
|
|
|
+ (MEMBER_STATUS_MEMBER, 'Adhérent'),
|
|
|
|
+ (MEMBER_STATUS_NOT_MEMBER, 'Non adhérent'),
|
|
|
|
+ (MEMBER_STATUS_PENDING, "Demande d'adhésion"),
|
|
)
|
|
)
|
|
|
|
|
|
status = models.CharField(max_length=50, choices=MEMBER_STATUS_CHOICES,
|
|
status = models.CharField(max_length=50, choices=MEMBER_STATUS_CHOICES,
|