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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-readedit-switch-admin-0.4.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cfe42aa90c7137018607721f9c511cf7149779d6dac9d984c729c4d8b710b3d |
|
MD5 | 11d9ecf5dbb44a61196325bef0ec6a38 |
|
BLAKE2b-256 | 5b2b1fce5cef24343a62ee9d1214e000685c701e25dde4042c294d02838d87ba |
Close
Hashes for django_readedit_switch_admin-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbf60a416ac433e72e5f40b14a92914f85bc200cc5a07034810a9601d4cc4cee |
|
MD5 | 585151bddc3988e5662110ceab5d00ba |
|
BLAKE2b-256 | 72e18af40f5131373565b3129d0064cf7a9beb1864c2759c2338ea464abb21be |