Allow @auditlog.register with no parentheses

This commit is contained in:
Aleh Rymašeŭski 2023-10-24 11:55:26 +00:00
parent ca3806f296
commit 0807b8f216

View file

@ -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:
"""