Fix small bug moderator/owner forms on list members page. Contributed by Pranjal Yadav (LP: 1308219).
commit 017e82cd6d9c504fe46ed9336d6b7b9f483fdf63
2 parents f4fbfe8 + 6637fff
@Florian Fuchs Florian Fuchs authored on 6 Feb 2015
Showing 2 changed files
View
1
■■■■
src/postorius/doc/news.rst
* Fix adding the a list owner on list creation. Contributed by Aurélien Bompard (LP: 1175967).
* Fix untranslatable template strings. Contributed by Sumana Harihareswara (LP: 1157947).
* Fix wrong labels in metrics template. Contributed by Sumana Harihareswara (LP: 1409033).
* URLs now contain the list-id instead of the fqdn_listname. Contributed by Abhilash Raj (LP: 1201150).
* Fix small bug moderator/owner forms on list members page. Contributed by Pranjal Yadav (LP: 1308219).
 
 
1.0 beta 1 -- "Year of the Parrot"
==================================
View
6
src/postorius/views/list.py
request, _('%s has been added as list owner.'
% request.POST['owner_email']))
except HTTPError as e:
messages.error(request, _(e.msg))
else:
owner_form = NewOwnerForm()
if 'moderator_email' in request.POST:
moderator_form = NewModeratorForm(request.POST)
if moderator_form.is_valid():
try:
request, _('%s has been added as list moderator.'
% request.POST['moderator_email']))
except HTTPError as e:
messages.error(request, _(e.msg))
else:
moderator_form = NewModeratorForm()
owner_form = NewOwnerForm()
moderator_form = NewModeratorForm()
return render_to_response('postorius/lists/members.html',
{'list': self.mailing_list,
'owner_form': owner_form,
'moderator_form': moderator_form},