Do not render links in checkbox columns
Review Request #7487 — Created July 3, 2015 and submitted
Cell rendering in DataGrid columns has been updated to allow the cell
to override theDataGrid
's choice of cell template. This allows the
theCheckboxColumn
to render without links, which would previously
activate when checked.
Tested the change with Review Board. There were no links in the
dashboard's checkboxes. Checking the checkbox did not redirect before
and after switching into mobile mode.
Description | From | Last Updated |
---|---|---|
local variable 'datagrid' is assigned to but never used |
reviewbot | |
This is pretty lengthy, in terms of line count. Can you format like: state.blah = \ self.renderblah(...) |
chipx86 | |
Careful. The render context should be shared amongst all cells, as an optimization (with a standard RequestContext, it'd rebuild bits … |
chipx86 |
Change Summary:
PEP8
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+48 -4) |
-
Tool: Pyflakes Processed Files: djblets/datagrid/grids.py Tool: PEP8 Style Checker Processed Files: djblets/datagrid/grids.py
-
-
djblets/datagrid/grids.py (Diff revision 2) This is pretty lengthy, in terms of line count. Can you format like:
state.blah = \ self.renderblah(...)
-
djblets/datagrid/grids.py (Diff revision 2) Careful. The render context should be shared amongst all cells, as an optimization (with a standard RequestContext, it'd rebuild bits for every cell, which was slow).
Maybe instead of all this, we just change the template for those cells?
Description: |
|
||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|
||||||||||||||||||||||||||||||||||||
Commit: |
|
||||||||||||||||||||||||||||||||||||
Diff: |
Revision 3 (+25 -4) |