Fix a weekmail deleteview, and make some translate fix

This commit is contained in:
Skia 2017-03-27 15:16:01 +02:00
parent b28ce200e6
commit 50413abf76
3 changed files with 7 additions and 6 deletions

View File

@ -347,6 +347,7 @@ class WeekmailArticleDeleteView(CanEditPropMixin, DeleteView):
"""Delete an article"""
model = WeekmailArticle
template_name = 'core/delete_confirm.jinja'
success_url = reverse_lazy('com:weekmail')
pk_url_kwarg = "article_id"

View File

@ -7,7 +7,7 @@ from django.contrib.auth.decorators import login_required, permission_required
from django.forms.models import modelform_factory
from django.forms import CheckboxSelectMultiple
from django.conf import settings
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _
from django.http import HttpResponse
from django.core.servers.basehttp import FileWrapper
from django.core.urlresolvers import reverse
@ -118,8 +118,8 @@ class FileEditPropForm(forms.ModelForm):
model = SithFile
fields = ['parent', 'owner', 'edit_groups', 'view_groups']
parent = make_ajax_field(SithFile, 'parent', 'files', help_text="")
edit_groups = make_ajax_field(SithFile, 'edit_groups', 'groups', help_text="")
view_groups = make_ajax_field(SithFile, 'view_groups', 'groups', help_text="")
edit_groups = make_ajax_field(SithFile, 'edit_groups', 'groups', help_text="", label=_("edit group"))
view_groups = make_ajax_field(SithFile, 'view_groups', 'groups', help_text="", label=_("view group"))
recursive = forms.BooleanField(label=_("Apply rights recursively"), required=False)
class FileEditPropView(CanEditPropMixin, UpdateView):

View File

@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-27 14:21+0200\n"
"POT-Creation-Date: 2017-03-27 15:09+0200\n"
"PO-Revision-Date: 2016-07-18\n"
"Last-Translator: Skia <skia@libskia.so>\n"
"Language-Team: AE info <ae.info@utbm.fr>\n"
@ -1676,11 +1676,11 @@ msgstr "miniature"
msgid "owner"
msgstr "propriétaire"
#: core/models.py:546 core/models.py:755
#: core/models.py:546 core/models.py:755 core/views/files.py:121
msgid "edit group"
msgstr "groupe d'édition"
#: core/models.py:547 core/models.py:756
#: core/models.py:547 core/models.py:756 core/views/files.py:122
msgid "view group"
msgstr "groupe de vue"