Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
FAST
project
fast-project-list
Commits
84d809b6
Commit
84d809b6
authored
Jul 13, 2021
by
Mirko Vucicevich
Browse files
patch admin
parent
3e3edeaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
projector/admin.py
projector/admin.py
+1
-1
No files found.
projector/admin.py
View file @
84d809b6
...
...
@@ -176,7 +176,7 @@ class GroupAdmin(admin.ModelAdmin):
def
has_change_permission
(
self
,
request
,
obj
=
None
):
if
obj
is
not
None
:
return
obj
.
users
.
filter
(
id
=
request
.
user
.
id
).
exists
()
return
super
().
has_change_permission
(
self
,
request
,
obj
)
return
super
().
has_change_permission
(
request
,
obj
)
prepopulated_fields
=
{
"slug"
:
(
'name'
,)}
def
get_queryset
(
self
,
request
):
qs
=
super
().
get_queryset
(
request
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment