django-auditlog
django-auditlog copied to clipboard
get_for_model() missing 1 required positional argument: 'model'
when I am passing a model or instance for LogEntryManagement.get_for_model(), I face this error
Hi ! Thanks for your report. Which version of Django and django-auditlog are you using, please ?
I get the same thing
You're supposed to use it this way...
logs = auditlog.models.LogEntry.objects.get_for_model(YourModel)
Ok i will check it
@amin7mazaheri Is it still a problem?
It shouldn't be. Refer to https://github.com/jazzband/django-auditlog/issues/306#issuecomment-1168482057
Thanks @WilliamOtieno for letting me know!
Thanks @WilliamOtieno for letting me know!