We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have some Meta attributes in the ModelForm that override the Form fields, for example, labels, help_texts, widgets, field_classes, etc.
ModelForm
Form
labels
help_texts
widgets
field_classes
To change some things in the column you need to overwrite the column:
class PersonTable(tables.Table): name = CustomColumn("Full name") age = tables.Column("Level") class Meta: model = Person fields = ["name", "age"]
We could do something similar in ModelForm.Meta for django-tables, for example:
ModelForm.Meta
django-tables
class PersonTable(tables.Table): class Meta: model = Person fields = ["name", "age"] verbose_names = { "name": "Full name", "age": "Level", } column_classes = { "name": CustomColumn, }
This would help to write more dynamic tables.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We have some Meta attributes in the
ModelForm
that override theForm
fields, for example,labels
,help_texts
,widgets
,field_classes
, etc.To change some things in the column you need to overwrite the column:
We could do something similar in
ModelForm.Meta
fordjango-tables
, for example:This would help to write more dynamic tables.
The text was updated successfully, but these errors were encountered: