Commit b1ac9fff authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK

PEP 8 pour preferences/views.py

parent a61d8d6e
......@@ -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()
......
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