if you have a context like {'category_id': [(6, 0, 42)]} as you mention in your bug report, the condition you add evaluates to False.
Shouldn't it be not context.get('category_id') or not isinstance(context['category_id'], (int, long)) ?
« Back to merge proposal
if you have a context like
{'category_id': [(6, 0, 42)]}
as you mention in your bug report, the condition you add evaluates to False.
Shouldn't it be get('category_ id') or not isinstance( context[ 'category_ id'], (int, long))
not context.
?