You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If this class is subclassing other tables, add their fields as# well. Note that we loop over the bases in *reverse* - this is# necessary to preserve the correct order of columns.parent_columns= []
forbaseinreversed(bases):
ifhasattr(base, "base_columns"):
parent_columns=list(base.base_columns.items()) +parent_columns# Start with the parent columnsbase_columns=OrderedDict(parent_columns)
So, in fact, fields attribute is indeed merge between parent and child.
I don't know which behavior is wanted, but this confusion is... confusing 😃
The text was updated successfully, but these errors were encountered:
In the doc it is stated that:
https://django-tables2.readthedocs.io/en/latest/pages/api-reference.html#Table.Meta
However, in the code there is:
tables.py:40
So, in fact,
fields
attribute is indeed merge between parent and child.I don't know which behavior is wanted, but this confusion is... confusing 😃
The text was updated successfully, but these errors were encountered: