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
thalia
concrexit
Commits
e5a1f138
Commit
e5a1f138
authored
Oct 24, 2018
by
Sébastiaan Versteeg
Browse files
Merge branch 'list-alias-str' into 'master'
Add ListAlias.__str__ See merge request
!1019
parents
789a496f
77c2bf2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/mailinglists/models.py
View file @
e5a1f138
...
...
@@ -146,6 +146,11 @@ class ListAlias(models.Model):
}
})
def
__str__
(
self
):
return
(
_
(
"List alias {alias} for {list}"
)
.
format
(
alias
=
self
.
alias
,
list
=
self
.
mailinglist
.
name
))
class
Meta
:
verbose_name
=
_
(
"List alias"
)
verbose_name_plural
=
_
(
"List aliasses"
)
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