|
@@ -44,9 +44,14 @@ class MaillingListSubscriptionInline(admin.TabularInline):
|
|
|
|
|
|
|
|
|
class SubscribersInline(MaillingListSubscriptionInline):
|
|
|
+ fields = ('member', 'email', 'maillinglist',)
|
|
|
+ readonly_fields = ('member', 'email', 'maillinglist',)
|
|
|
verbose_name_plural = "Abonné·e·s"
|
|
|
verbose_name = "abonné·e"
|
|
|
|
|
|
+ def email(self, instance):
|
|
|
+ return instance.member.email
|
|
|
+
|
|
|
|
|
|
class MaillingListAdmin(admin.ModelAdmin):
|
|
|
list_display = ('email', 'verbose_name')
|