1👍
✅
The content_type
argument should be a ContentType
object, not a model class.
Instead of doing doing this manually you should use the LogEntryManager
s get_for_model
method:
LogEntry.objects.get_for_model(Posting).filter(action=2).count()
Source:stackexchange.com