Update this check to use the [Q object])https://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects) in order to simplify this code