mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Allow @auditlog.register with no parentheses
This commit is contained in:
parent
ca3806f296
commit
0807b8f216
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue