Tidy up Facet
This commit is contained in:
parent
478fae7d91
commit
b34ff146c4
|
@ -32,11 +32,10 @@ def from_camel(attr):
|
||||||
|
|
||||||
|
|
||||||
class Facet(object):
|
class Facet(object):
|
||||||
def __init__(self, column, type, expression='value',
|
def __init__(self, column, type, expression='value', **options):
|
||||||
**options):
|
|
||||||
self.type = type
|
self.type = type
|
||||||
|
self.name = column
|
||||||
self.column_name = column
|
self.column_name = column
|
||||||
self.name = column # XXX not sure what the difference is yet
|
|
||||||
self.expression = expression
|
self.expression = expression
|
||||||
for k, v in options.items():
|
for k, v in options.items():
|
||||||
setattr(self, k, v)
|
setattr(self, k, v)
|
||||||
|
|
Loading…
Reference in New Issue