Metadata-Version: 2.1
Name: django-readedit-switch-admin
Version: 0.1.0
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 = [
            ...
            'readedit_switch',
            ...
        ]
        ```
        
        **app/admin.py**
        
        ```python
        from django.contrib import admin
        from .models import Category
        from .models import Book
        
        from readedit_switch.admin import ReadEditSwitchAdminMixin
        
        
        class BookInline(admin.TabularInline):
            model = Book
        
        class CategoryAdmin(ReadEditSwitchAdminMixin, admin.ModelAdmin):
            list_display = ["name"]
            inlines = [
                BookInline
            ]
        
        admin.site.register(Category, CategoryAdmin)
        ```
        
        ## Releases
        
        ### v0.1.0 2020.02.04
        
        - First release.
        
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
