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.

Source Distribution

django-readedit-switch-admin-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file django-readedit-switch-admin-0.1.0.tar.gz.

File metadata

  • Download URL: django-readedit-switch-admin-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5

File hashes

Hashes for django-readedit-switch-admin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b06e6507e5fed2896ce0b484131e24346c829eacdb8b4e8aae7d651ddd87dbb
MD5 3c8850ff453ed381f4fba031884da63d
BLAKE2b-256 604c2dbd6087bd12cdb813b6ec493449b03b91c843e9e81c169907daf26037b2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page