Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Håvard Farestveit
tdt4242-base
Commits
27c9317b
Commit
27c9317b
authored
Apr 04, 2021
by
Håvard Farestveit
Browse files
#30
removed commented code
parent
a0362a11
Pipeline
#125310
passed with stage
in 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/secfit/users/admin.py
View file @
27c9317b
...
...
@@ -9,7 +9,6 @@ class CustomUserAdmin(UserAdmin):
add_form
=
CustomUserCreationForm
form
=
CustomUserChangeForm
model
=
get_user_model
()
# list_display = UserAdmin.list_display + ('coach',)
fieldsets
=
UserAdmin
.
fieldsets
+
((
None
,
{
"fields"
:
(
"coach"
,)}),)
add_fieldsets
=
UserAdmin
.
add_fieldsets
+
((
None
,
{
"fields"
:
(
"coach"
,)}),)
...
...
backend/secfit/users/models.py
View file @
27c9317b
...
...
@@ -3,9 +3,6 @@ from django.contrib.auth.models import AbstractUser
from
django.contrib.auth
import
get_user_model
# Create your models here.
class
User
(
AbstractUser
):
"""
Standard Django User model with an added field for a user's coach.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment