From 3a90087d324deb7ccce796dcec731587ceb72ad4 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Fri, 3 Feb 2023 17:03:20 +0330 Subject: [PATCH] Add null=True to ci field (#506) * Add null=True to ci field * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- auditlog/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/auditlog/models.py b/auditlog/models.py index 066fe1c..b13763a 100644 --- a/auditlog/models.py +++ b/auditlog/models.py @@ -366,7 +366,11 @@ class LogEntry(models.Model): verbose_name=_("actor"), ) cid = models.CharField( - max_length=255, db_index=True, blank=True, verbose_name=_("Correlation ID") + max_length=255, + db_index=True, + blank=True, + null=True, + verbose_name=_("Correlation ID"), ) remote_addr = models.GenericIPAddressField( blank=True, null=True, verbose_name=_("remote address")