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 = [
    ...
    'django_readedit_switch_admin',
    ...
]

app/admin.py

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

v0.4.3 2020.09.08

  • Use jquery.js shipped with django, and control js loading order.

v0.4.2 2020.03.08

  • Fix block.super spell mistake.

v0.4.1 2020.03.08

  • Fix problem for all NONE DjangoReadeditSwitchAdmins.

v0.4.0 2020.03.07

  • Rename django_readedit_switch_admin.html to change_form.html, so that it can be override by other applications.

v0.3.0 2020.03.05

  • Fix django_readedit_switch_admin.apps' verbose_name.
  • Rename DjangoReadEditSwitchAdminMixin to DjangoReadEditSwitchAdmin. It's NOT good to add mixin suffix.

v0.2.0 2020.02.26

  • App rename to django_readedit_switch_admin.

v0.1.2 2020.02.24

  • Don't check is_edit_view in getting add and delete permissions.

v0.1.1 2020.02.20

  • Fix add/change/delete permission problem in changelist view. Changelist view should obey the real permission.

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.4.3.tar.gz (6.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: django-readedit-switch-admin-0.4.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for django-readedit-switch-admin-0.4.3.tar.gz
Algorithm Hash digest
SHA256 654be297a08de2e025531805205d74f67cf22d3549e1128aa55a8eee2f97b5ef
MD5 7387280f23780cb0f9eee4ca2595d78e
BLAKE2b-256 b8163339b66e974a683e31bed99bf1e83d9c696a94484750cb472aafa5b41b6c

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