summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-12-03 13:07:21 +0000
committerGerrit Code Review <review@openstack.org>2015-12-03 13:07:21 +0000
commiteae45b143cb7be538c11b1b1b51aa7dd4be2e23d (patch)
tree244709dd998259ed20d37230693051579feed27d
parent56a5e16f762a5590c02221366687b4044269e35f (diff)
parent44ed0a452c59b62759ddc1599f97c23c7481dbd7 (diff)
Merge "Simplified boolean variable check"9.0.0.0b1
-rw-r--r--horizon/tables/formset.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/tables/formset.py b/horizon/tables/formset.py
index 744c322..a885466 100644
--- a/horizon/tables/formset.py
+++ b/horizon/tables/formset.py
@@ -51,7 +51,7 @@ class FormsetRow(horizon_tables.Row):
51 def __init__(self, column, datum, form): 51 def __init__(self, column, datum, form):
52 self.form = form 52 self.form = form
53 super(FormsetRow, self).__init__(column, datum) 53 super(FormsetRow, self).__init__(column, datum)
54 if self.cells == []: 54 if not self.cells:
55 # We need to be able to handle empty rows, because there may 55 # We need to be able to handle empty rows, because there may
56 # be extra empty forms in a formset. The original DataTable breaks 56 # be extra empty forms in a formset. The original DataTable breaks
57 # on this, because it sets self.cells to [], but later expects a 57 # on this, because it sets self.cells to [], but later expects a