Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit d27d6705 authored by chirac's avatar chirac

Merge branch 'validation' into 'master'

Fix #100 : validation des factures plus explicite

Closes #100

See merge request federez/re2o!158
parents e064db62 f8859796
This diff is collapsed.
...@@ -651,6 +651,10 @@ def control(request): ...@@ -651,6 +651,10 @@ def control(request):
if control_invoices_form.is_valid(): if control_invoices_form.is_valid():
control_invoices_form.save() control_invoices_form.save()
reversion.set_comment("Controle") reversion.set_comment("Controle")
messages.success(
request,
_("Your changes have been properly taken into account.")
)
return redirect(reverse('cotisations:control')) return redirect(reverse('cotisations:control'))
return render(request, 'cotisations/control.html', { return render(request, 'cotisations/control.html', {
'facture_list': invoice_list, 'facture_list': invoice_list,
......
...@@ -189,7 +189,7 @@ def can_change(*targets): ...@@ -189,7 +189,7 @@ def can_change(*targets):
method 'can_change'. See `acl_base_decorator` documentation for further method 'can_change'. See `acl_base_decorator` documentation for further
details. details.
""" """
return acl_base_decorator('can_change', *targets) return acl_base_decorator('can_change', *targets, on_instance=False)
def can_delete(*targets): def can_delete(*targets):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment