Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
feudal
feudalBackend
Commits
3a0a7525
Commit
3a0a7525
authored
Mar 05, 2018
by
Lukas Burgey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make some User fields not editable
parent
d38dc754
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
django_backend/backend/models.py
django_backend/backend/models.py
+6
-0
No files found.
django_backend/backend/models.py
View file @
3a0a7525
...
...
@@ -275,11 +275,13 @@ class User(AbstractUser):
max_length
=
150
,
blank
=
True
,
null
=
True
,
editable
=
False
,
)
password
=
models
.
CharField
(
max_length
=
150
,
blank
=
True
,
null
=
True
,
editable
=
False
,
)
# the real state of the user
# (self.is_active is the supposed state of the user)
...
...
@@ -292,11 +294,15 @@ class User(AbstractUser):
OIDCConfig
,
related_name
=
'users'
,
on_delete
=
models
.
CASCADE
,
blank
=
True
,
null
=
True
,
editable
=
False
,
)
userinfo
=
JSONField
(
default
=
user_info_default
,
null
=
True
,
blank
=
True
,
editable
=
False
,
)
# we hide deleted keys here
...
...
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