Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
81745713
Commit
81745713
authored
Aug 15, 2018
by
Lukas Burgey
Browse files
Some fixes
parent
2642cd48
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/models/users.py
View file @
81745713
...
...
@@ -26,6 +26,7 @@ class User(AbstractUser):
user_type
=
models
.
CharField
(
max_length
=
20
,
choices
=
TYPE_CHOICES
,
default
=
'apiclient'
,
)
sub
=
models
.
CharField
(
max_length
=
150
,
...
...
@@ -165,7 +166,7 @@ class User(AbstractUser):
return
'APICLIENT {}'
.
format
(
self
.
username
)
else
:
raise
Exception
()
self
.
username
def
msg
(
self
,
msg
):
return
'[{}] {}'
.
format
(
self
,
msg
)
...
...
Write
Preview
Supports
Markdown
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