Apply pycodestyle recommendation on logger.py

This commit is contained in:
Kumi 2019-04-21 08:11:19 +00:00
parent 2add88cbb4
commit 6111cc3514

View file

@ -4,6 +4,7 @@ from .signals import siglog
from .models import Device, Wifi, DeviceLog, UserLog, WifiLog from .models import Device, Wifi, DeviceLog, UserLog, WifiLog
from django.contrib.auth.models import User from django.contrib.auth.models import User
@receiver(siglog) @receiver(siglog)
def logger(sender, **kwargs): def logger(sender, **kwargs):
if sender == Device: if sender == Device:
@ -22,4 +23,3 @@ def logger(sender, **kwargs):
oldvalue=kwargs["oldvalue"], oldvalue=kwargs["oldvalue"],
newvalue=kwargs["newvalue"] newvalue=kwargs["newvalue"]
) )