8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-28 01:43:46 +00:00

PEP 8 pour preferences/views.py

This commit is contained in:
Hugo LEVY-FALK 2018-05-07 20:03:12 +02:00
parent a61d8d6ebd
commit b1ac9fffbb

View file

@ -145,7 +145,10 @@ def add_service(request):
def edit_service(request, service_instance, **_kwargs):
"""Edition des services affichés sur la page d'accueil"""
service = ServiceForm(
request.POST or None, request.FILES or None, instance=service_instance)
request.POST or None,
request.FILES or None,
instance=service_instance
)
if service.is_valid():
with transaction.atomic(), reversion.create_revision():
service.save()