Metadata-Version: 2.1
Name: django-readedit-switch-admin
Version: 0.4.5
Summary: Read item detail first, and click the Edit switch button to turn to edit view.
Home-page: UNKNOWN
Author: zencore
Author-email: dobetter@zencore.cn
License: MIT
Description: # django-readedit-switch-admin
        
        Read item detail first, and click the Edit switch button to turn to edit view.
        
        
        ## Install
        
        ```shell
        pip install django-readedit-switch-admin
        ```
        
        ## Usage
        
        **pro/settings.py**
        
        ```python
        
        INSTALLED_APPS = [
            ...
            'django_readedit_switch_admin',
            ...
        ]
        ```
        
        **app/admin.py**
        
        ```python
        from django.contrib import admin
        from .models import Category
        from .models import Book
        
        from django_readedit_switch_admin.admin import DjangoReadEditSwitchAdmin
        
        
        class BookInline(admin.TabularInline):
            model = Book
        
        class CategoryAdmin(DjangoReadEditSwitchAdmin, admin.ModelAdmin):
            list_display = ["pk", "name"]
            list_editable = ["name"]
            inlines = [
                BookInline
            ]
        
        admin.site.register(Category, CategoryAdmin)
        
        ```
        
        ## Releases
        
        | Version | Released Time | Content                                                    | Notice |
        | ------ | ---------- | ---------------------------------------------------------------- | ---- |
        | v0.1.0 | 2020.02.04 | 1. First release. | |
        | v0.1.1 | 2020.02.20 | 2. Fix add/change/delete permission problem in changelist view. Changelist view should obey the real permission. | |
        | v0.1.2 | 2020.02.24 | 3. Don't check is_edit_view in getting add and delete permissions. | |
        | v0.2.0 | 2020.02.26 | 4. App rename to django_readedit_switch_admin. | |
        | v0.3.0 | 2020.03.05 | 5. Fix django_readedit_switch_admin.apps' verbose_name.<br />6. Rename DjangoReadEditSwitchAdminMixin to DjangoReadEditSwitchAdmin. It's NOT good to add mixin suffix. | |
        | v0.4.0 | 2020.03.07 | 7. Rename django_readedit_switch_admin.html to change_form.html, so that it can be override by other applications. | |
        | v0.4.1 | 2020.03.08 | 8. Fix problem for all NONE DjangoReadeditSwitchAdmins. | |
        | v0.4.2 | 2020.03.08 | 9. Fix block.super spell mistake. | |
        | v0.4.3 | 2020.09.08 | 10. Use jquery.js shipped with django, and control js loading order. | |
        | v0.4.4 | 2020.11.15 | 11. Fix edit problem with _changelist_filters. | |
        | v0.4.5 | 2021.04.13 | 12. Fix has_add_permission problem.<br />13. Test in Django 3.2. | |
        
Keywords: django admin extentions,django readedit switch admin
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Description-Content-Type: text/markdown
