In forms.py, add a custom inline form, and in the init method customize the queryset to whatever it needs to be, after calling super, e.g.:
class OrderRowsInlineForm(forms.ModelForm):
class Meta:
model = None
fields = '__all__'
def __init__(self, *args, **kwargs):
super(OrderRowsInlineForm, self).__init__(*args, **kwargs)
self.fields['product'].queryset = Product.objects.filter(brand='whatever')
Then in admin.py, import the form and add a custom admin for the inline that uses that custom form, like:
from forms import OrderRowsInlineForm
class OrderRowsInline(admin.TabularInline):
model = OrderRows
form = OrderRowsInlineForm
Now, depending on what you want to set the queryset to, you might run into some trouble; if the list of brands for an order row depends on the brand in the product, you might have to do some trickery to pass the proper brand (or brand id) down into the form. You can generally use self.instance, but if these are new records that haven't been saved yet (i.e. the user will be filling in the details and clicking Save), which i assume is true, then i believe self.instance is None until saved, so won't be useful here.