vvangelovski/django-audit-log

Audit log queryset with filter()

eguevara2012 opened this issue · 1 comments

Hi!

I have this query:

param = Display.audit_log.filter(campaign_id=object_id)

The query works, but in Eclipse Indigo show this error "Undefined variable from import: filter". I'm using it correctly, or is there something wrong in audit log?

Thanks!

If the code works then what's the problem wrong 😄 . That's why you shouldn't rely on IDE's for Python too much. The audit_log model for each model is constructed at runtime that's probably the reason for the error.