Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
129f4906
Verified
Commit
129f4906
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Reformat
parent
98d5e9c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!327
Resolve "Improve newly added filters"
Pipeline
#3025
passed
4 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/core/util/apps.py
+1
-3
1 addition, 3 deletions
aleksis/core/util/apps.py
aleksis/core/views.py
+3
-1
3 additions, 1 deletion
aleksis/core/views.py
with
4 additions
and
4 deletions
aleksis/core/util/apps.py
+
1
−
3
View file @
129f4906
...
...
@@ -204,7 +204,5 @@ class AppConfig(django.apps.AppConfig):
ct
=
ContentType
.
objects
.
get_for_model
(
model
)
for
perm
,
verbose_name
in
model
.
extra_permissions
:
Permission
.
objects
.
get_or_create
(
codename
=
perm
,
content_type
=
ct
,
defaults
=
{
"
name
"
:
verbose_name
},
codename
=
perm
,
content_type
=
ct
,
defaults
=
{
"
name
"
:
verbose_name
},
)
This diff is collapsed.
Click to expand it.
aleksis/core/views.py
+
3
−
1
View file @
129f4906
...
...
@@ -293,7 +293,9 @@ def edit_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResponse
if
id_
:
# Edit form for existing group
edit_person_form
=
EditPersonForm
(
request
.
POST
or
None
,
request
.
FILES
or
None
,
instance
=
person
)
edit_person_form
=
EditPersonForm
(
request
.
POST
or
None
,
request
.
FILES
or
None
,
instance
=
person
)
else
:
# Empty form to create a new group
if
request
.
user
.
has_perm
(
"
core.create_person
"
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment