Instead of having complex filtering logic on views, move most of it to the models and their managers. I tried not to go overboard; there are places where we still make multiple chained calls in a view. But mostly it's more obvious what each query entry is doing.
Instead of having complex filtering logic on views, move most of it to the models and their managers. I tried not to go overboard; there are places where we still make multiple chained calls in a view. But mostly it's more obvious what each query entry is doing.