Helper for working with Django QuerySet