mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
PEP 8 pour preferences/views.py
This commit is contained in:
parent
a61d8d6ebd
commit
b1ac9fffbb
1 changed files with 4 additions and 1 deletions
|
@ -145,7 +145,10 @@ def add_service(request):
|
||||||
def edit_service(request, service_instance, **_kwargs):
|
def edit_service(request, service_instance, **_kwargs):
|
||||||
"""Edition des services affichés sur la page d'accueil"""
|
"""Edition des services affichés sur la page d'accueil"""
|
||||||
service = ServiceForm(
|
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():
|
if service.is_valid():
|
||||||
with transaction.atomic(), reversion.create_revision():
|
with transaction.atomic(), reversion.create_revision():
|
||||||
service.save()
|
service.save()
|
||||||
|
|
Loading…
Reference in a new issue