Metadata-Version: 2.1
Name: django-modeladmin
Version: 2021.7.2
Summary: Django ModelAdmin replacement
Home-page: https://github.com/andrewp-as-is/django-modeladmin.py
License: Unlicense
Description: [![](https://img.shields.io/badge/released-2021.6.22-green.svg?longCache=True)](https://pypi.org/project/django-modeladmin/)
        [![](https://img.shields.io/badge/license-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)
        
        ### Installation
        ```bash
        $ pip install django-modeladmin
        ```
        
        ### Pros
        +   auto `list_display` (all fields)
        +   auto `list_filter` (`BooleanField` fields)
        +   auto `search_fields` (`CharField` and `TextField` fields)
        +   `list_display` formatters - `elapsed`, `strftime`, `timesince`
        
        ### Examples
        `admin.py`
        ```python
        from django_modeladmin import admin
        
        from .models import MyModelAdmin
        
        @admin.register(Author)
        class MyModelAdmin(admin.ModelAdmin):
            ...
        ```
        
        `list_display` formatters:
        ```python
        list_display = [
            'id',
            'started_at',
            ('strftime','started_at','%H-%M-%S','started',),
            ('elapsed','started_at','finished_at','elapsed',),
            ('timesince','created_at','',),
        ]
        ```
Platform: UNKNOWN
Classifier: Framework :: Django
Classifier: License :: Public Domain
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
