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.1.0

  • First release.

v0.1.1

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

v0.1.2

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

v0.2.0

  • App rename to django_readedit_switch_admin.

v0.3.0

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

v0.4.0

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

v0.4.1

  • Fix problem for all NONE DjangoReadeditSwitchAdmins.

v0.4.2

  • Fix block.super spell mistake.

v0.4.3

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

v0.4.4

  • Fix edit problem with _changelist_filters.

v0.4.5

  • Fix has_add_permission problem.
  • Test in Django 3.2.

v0.4.6

  • Doc update.

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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for django-readedit-switch-admin-0.4.6.tar.gz
Algorithm Hash digest
SHA256 10bf28be3f28605ad9c0e6ec430c167fda0587743df1ff9ae2670de3b4d7026b
MD5 9a2b68fdb073f876b948ba3660879c02
BLAKE2b-256 afd9daff02b65ff3f100b4e3c1264caa7582c296dbf1b2bfacbdef5ddb4c3e2e

See more details on using hashes here.

File details

Details for the file django_readedit_switch_admin-0.4.6-py3-none-any.whl.

File metadata

File hashes

Hashes for django_readedit_switch_admin-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ca1f37e0dbca19f36ca0ea88addf05e23b8fc8e3d24778e2407e4f1faf844127
MD5 c8b61daf7e1d0ce909cb8e721e5543a9
BLAKE2b-256 9fb798c2fde94c7ae16ea587c066fea7b2aff9023ca972fd4eb563a4e5c42d7e

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