Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #961 from yverdon/feature/YC-1182
Browse files Browse the repository at this point in the history
Feature/yc 1182
  • Loading branch information
AlexandreJunod authored Mar 27, 2024
2 parents c0b283c + 2e70c4b commit 99db752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geocity/apps/accounts/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django import forms
from django.conf import settings
from django.contrib import admin, messages
from django.contrib.auth.admin import GroupAdmin as BaseGroupAdmin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import UserChangeForm
from django.contrib.auth.models import Group, Permission, User
Expand Down Expand Up @@ -515,7 +516,7 @@ def formfield_for_foreignkey(self, db_field, request, **kwargs):
return super().formfield_for_foreignkey(db_field, request, **kwargs)


class GroupAdmin(admin.ModelAdmin):
class GroupAdmin(BaseGroupAdmin):
inlines = (PermitDepartmentInline, UserInline)
form = GroupAdminForm
list_display = [
Expand Down

0 comments on commit 99db752

Please sign in to comment.