Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
pix666 committed May 25, 2024
1 parent 354eedc commit 612309b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,8 @@ admin.site.register(User, CustomUserAdmin)

![image](https://github.com/dldevinc/paper-admin/assets/6928240/72766127-ccc6-4538-ac4f-5dae14a30e1f)

For permission fields, you can take it a step further and utilize [paper-admin-permission-field](https://github.com/dldevinc/paper-admin-permission-field).

## Settings

`PAPER_FAVICON`<br>
Expand Down
2 changes: 1 addition & 1 deletion paper_admin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "7.6.4"
__version__ = "7.7.0"
default_app_config = "paper_admin.apps.Config"
18 changes: 16 additions & 2 deletions tests/users/admin.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
from django import forms
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.admin import GroupAdmin, UserAdmin
from django.contrib.auth.forms import UserChangeForm
from django.contrib.auth.models import User
from django.contrib.auth.models import Group, User

from paper_admin.admin.widgets import AdminCheckboxTree


class GroupAdminForm(forms.ModelForm):
class Meta:
widgets = {
"permissions": AdminCheckboxTree,
}


class CustomGroupAdmin(GroupAdmin):
form = GroupAdminForm


class CustomUserChangeForm(UserChangeForm):
class Meta:
widgets = {
Expand All @@ -18,4 +30,6 @@ class CustomUserAdmin(UserAdmin):


admin.site.unregister(User)
admin.site.unregister(Group)
admin.site.register(User, CustomUserAdmin)
admin.site.register(Group, CustomGroupAdmin)

0 comments on commit 612309b

Please sign in to comment.