Skip to main content

Read item detail first, and click the Edit switch button to turn to edit view.

Project description

django-readedit-switch-admin

Read item detail first, and click the Edit switch button to turn to edit view.

Install

pip install django-readedit-switch-admin

Usage

pro/settings.py

INSTALLED_APPS = [
    ...
    'readedit_switch',
    ...
]

app/admin.py

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-readedit-switch-admin, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-readedit-switch-admin-0.1.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page