Control of html tables - paging, sorting, css, checkbox column, primary-key column, help text, custom columns, model field columns, foreign key field columns etc. in templates with a beautiful declarative syntax.
If the above is not enough, Coffee Table will automatically optimize your query using select_related so that each page of the table will be rendered by a single SQL query.
Installation
CoffeeTable is at the cheeseshop:
pip install django_coffee_table
Usage
To use coffee_table in your project:
Set up dependencies according to their respective documentation:
Include django_coffee_table in your INSTALLED_APPS.
Open your template and load up the coffee_table tags library:
{% load coffee_table %}Basic usage:
{% coffee_table object_list %}Advanced usage:
{% coffee_table object_list field_accessors='name, content_type__app_label' paginate_by='10' table_class='table table-condensed' checkbox_column=True primary_key_column=True help_text=True %}
Please see the included test project for more help.
History
1.0.0 (2014-05-27)
First stable release after gtting to 98% test coverage.
0.3.0 (2013-11-26)
Support for automatic queryset optimization using select_related.
0.2.2 (2013-11-26)
Added support for FK fields in tebles using the __ notation.
0.2.1 (2013-11-26)
Included tag_parser for kwarg parsing in the coffee_table tag.
0.2.0 (2013-11-26)
Improved documentation.
0.1.0 (2013-11-26)
First release on PyPI.
Metadata
Release files for django_coffee_table 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_coffee_table-1.0.1.tar.gz | 13.4 kB | Without provenance | Details |
Release files / django_coffee_table-1.0.1.tar.gz
| Download URL | django_coffee_table-1.0.1.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
234d1f3d8b30dd6ed31e45803b064dd846ff6e1b51ec5813c2d4bfaba03c083f
|
|
BLAKE2b-256 checksum How to use checksums |
e28e02cf9023c8cdfda2ed951364a5e5be4e31e4199e4944973189eb34f14561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django_coffee_table 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.