Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eScriptorium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scripta
eScriptorium
Commits
0630b60f
Commit
0630b60f
authored
4 years ago
by
EL HASSANE GARGEM
Browse files
Options
Downloads
Patches
Plain Diff
show onboarding on admin
parent
c5143e83
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!46
Onboarding
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/apps/users/admin.py
+1
-1
1 addition, 1 deletion
app/apps/users/admin.py
app/apps/users/models.py
+1
-1
1 addition, 1 deletion
app/apps/users/models.py
with
2 additions
and
2 deletions
app/apps/users/admin.py
+
1
−
1
View file @
0630b60f
...
...
@@ -32,7 +32,7 @@ class MyUserAdmin(UserAdmin):
add_form
=
MyUserCreationForm
list_display
=
UserAdmin
.
list_display
+
(
'
last_login
'
,)
fieldsets
=
UserAdmin
.
fieldsets
+
(
(
None
,
{
'
fields
'
:
(
'
fields
'
,)}),
# second fields refers to research fields
(
None
,
{
'
fields
'
:
(
'
fields
'
,
'
onboarding
'
)}),
# second fields refers to research fields
)
...
...
This diff is collapsed.
Click to expand it.
app/apps/users/models.py
+
1
−
1
View file @
0630b60f
...
...
@@ -21,7 +21,7 @@ class User(AbstractUser):
fields
=
models
.
ManyToManyField
(
'
ResearchField
'
,
blank
=
True
)
onboarding
=
models
.
BooleanField
(
_
(
'
first connection
'
),
_
(
'
Show onboarding
'
),
default
=
True
)
...
...
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