Control of tables in templates sans BS.
Project description
Control of tables in templates sans BS.
Coffee Table now supports following ForeignKey relations using the familiar ‘__’ notation. The icing on the cake: Coffee Table will automatically optimize your query using select_related so that each page of the table will generate a single SQL query!
Installation
we are at the cheeseshop:
pip install django_coffee_table
Usage
Read on:
- Set up dependencies according to the given docs:
Include django_coffee_table in your INSTALLED_APPS settings.
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 demo project for more help on usage etc. Dont forget to star the repository on Github if you find this useful. A little encouragement goes a long way in helping me stay mtivated.
History
0.1.0 (2013-11-26)
First release on PyPI.
0.2.0 (2013-11-26)
Improved documentation.
0.2.1 (2013-11-26)
Included tag_parser for kwarg parsing in the coffee_table tag.
0.2.2 (2013-11-26)
Added support for FK fields in tebles using the __ notation.
0.3.0 (2013-11-26)
Support for automatic queryset optimization using select_related.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django_coffee_table-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b3f005f576e7016e11c0fb4bc737578bac216118d53f692a0dc119076cb380 |
|
MD5 | b857ef3a81a81eabe65d65c8d04a405e |
|
BLAKE2b-256 | 0d70dd4a9cb0bf01427b60d654b39ddcfda23ff4c066d6f8cb329f95129f229d |