Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ARN
coin
Commits
76fbd52e
Commit
76fbd52e
authored
Mar 17, 2019
by
jocelyn
Browse files
Displays the member email in list detail view (admin)
parent
b86fa40e
Changes
1
Hide whitespace changes
Inline
Side-by-side
maillists/admin.py
View file @
76fbd52e
...
...
@@ -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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment