-
-
-
Can we change object_list to review_request_list? We can name this by setting template_object_name to "review_request" when creating the view.
-
There's a group= parameter that's passed to the page when looking at review requests for a certain group. We need to pass this as well. We can probably just unconditionally set it, since it'll be empty if we're not in group mode, but it would look nicer to make it conditional.
Convert dashboard to be a generic view
Review Request #47 — Created June 3, 2007 and submitted
We weren't using generic views in the dashboard because there's a bug in Q objects that was preventing us from creating a query for the "all incoming reviews" view. We hacked around this by doing the OR+distinct step ourselves using lists. It turns out that with just a little coaxing, django's generic object_list view can be used with a list instead of a QuerySet. This change does that, and makes the dashboard into a simple superset of object_list. The major benefit of this is that we get pagination basically for free.
Set pagination interval very low (for my meager number of review requests in my test server) and tried a couple different views in the dashboard.