Im trying to make a django query filtering with one parameter and also using "Q" like this :
variables = Indicator.objects.filter(
type = constants_type_indicator_variable.variable,
Q(current_state = constants_current_state.valid) |
Q(current_state = constants_current_state.current_registered) |
Q(current_state = constants_current_state.re_opened) |
Q(current_state = constants_current_state.open_registered)
)
But im getting this error in the first "Q" line :
non-keyword arg after keyword arg
If i only use the "Q" without filtering by that "type" field it works, but togheter it crashes...
Any idea why ?, thanks in advance.