From 0807b8f2160093a8e5903292eca53faf1990f3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleh=20Ryma=C5=A1e=C5=ADski?= Date: Tue, 24 Oct 2023 11:55:26 +0000 Subject: [PATCH] Allow @auditlog.register with no parentheses --- auditlog/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auditlog/registry.py b/auditlog/registry.py index 1f8166b..38e22a4 100644 --- a/auditlog/registry.py +++ b/auditlog/registry.py @@ -141,7 +141,7 @@ class AuditlogModelRegistry: return lambda cls: registrar(cls) else: # Otherwise, just register the model. - registrar(model) + return registrar(model) def contains(self, model: ModelBase) -> bool: """