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.

v0.4.7

  • Fix js error in latest django versions.

v0.4.8

  • 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.8.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_readedit_switch_admin-0.4.8-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file django_readedit_switch_admin-0.4.8.tar.gz.

File metadata

File hashes

Hashes for django_readedit_switch_admin-0.4.8.tar.gz
Algorithm Hash digest
SHA256 e31bb96e36acff0a252e832ed1d7d85540d7624cfd76bc34ab515d678666047b
MD5 38236312f9e60e78b6e52fdff7397fbe
BLAKE2b-256 8f5fff5c75e5cb4fc8eb1195e7185cec627b137fc188f65bf5c6607253ede2f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_readedit_switch_admin-0.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a86e08cbcc016a7b573d9a8a555b598c55ed424559de220516ed71d6636d6d9a
MD5 17d261d6264ff5f308041b1f48ee6aff
BLAKE2b-256 6bbf73d3358e8e8e737766eeb6a5c52a9a5f84659598bd88d5f49cb62a6045e9

See more details on using hashes here.

Supported by

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