[IMP] auditlog: black, isort, prettier

pull/2466/head
BT-vgabor 2022-01-31 15:22:20 +01:00 committed by Stefan Rijnhart
parent d7d8eeb548
commit 3059c6b20c
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class AuditlogLog(models.Model):
@api.model_create_multi
def create(self, vals_list):
""" Insert model_name and model_model field values upon creation. """
"""Insert model_name and model_model field values upon creation."""
for vals in vals_list:
if not vals.get("model_id"):
raise UserError(_("No model defined to create log."))

View File

@ -301,7 +301,7 @@ class TestFieldRemoval(SavepointCase):
self.assertEqual(self.auditlog_rule.model_model, "x_test.model")
def test_01_field_and_model_removal(self):
""" Test field and model removal to check auditlog line persistence """
"""Test field and model removal to check auditlog line persistence"""
self.assert_values()
# Remove the field