Metadata-Version: 1.1
Name: django-smart-lists
Version: 1.0.19
Summary: Easy lists for django views
Home-page: https://github.com/plecto/django-smart-lists
Author: Kristian Oellegaard
Author-email: kristian@kristian.io
License: MIT License
Description-Content-Type: UNKNOWN
Description: # django-smart-lists
        
        ```python
        from smart_lists.mixins import SmartListMixin
        
        class AccountListView(LoginRequiredMixin, SmartListMixin, ListView):
            model = Account
            paginate_by = 100
            ordering_allowed_fields = ['company_name', 'code', 'created_date']
            list_display = ['company_name', 'code', 'created_date', 'balance']
        ```
        
        This will give you a click-to-sort table with pagination. All you have to do is to make a template like this:
        
        ```html
        
        {% extends "base.html" %}
        {% load smart_list %}
        
        {% block content %}
            {% smart_list %}
        {% endblock %}
        
        ```
        **The built-in templates are bootstrap 3 compatible - but override them easily (by positioning the apps in INSTALLED_APPS) to fit your own needs**
        
        # Other features
        
        django-smart-lists supports commmon method attributes supported by django admin, such as:
        
        ```python
        
        class EpicModel(models.Model):
            title = models.CharField(max_length=128)
            
            def get_pretty_title(self):
                return "Pretty {}".format(self.title)
            get_pretty_title.short_description = 'Pretty Title'
            get_pretty_title.admin_order_field = 'title'
            
        
        ### License
        
        MIT License
        
        Copyright (c) 2017 Plecto
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
