Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
TopGym
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Webster, Aidan (UG - Comp Sci & Elec Eng)
TopGym
Commits
0ed89743
Commit
0ed89743
authored
2 years ago
by
Michel, Liam (UG - Comp Sci & Elec Eng)
Browse files
Options
Downloads
Patches
Plain Diff
changed user model to have a name, automatic incrementing PK
parent
f0bd7373
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/models.py
+5
-4
5 additions, 4 deletions
core/models.py
topgym/settings.py
+1
-0
1 addition, 0 deletions
topgym/settings.py
with
6 additions
and
4 deletions
core/models.py
+
5
−
4
View file @
0ed89743
...
...
@@ -11,14 +11,15 @@ from django.contrib.auth.models import AbstractUser
#table for exercises, each record has name, description and video link
class
Exercise
(
models
.
Model
):
#has own auto incrementing ID
name
=
models
.
CharField
(
max_length
=
50
)
description
=
models
.
CharField
(
max_length
=
100
,
verbose_name
=
"
Description of exercise
"
)
video_link
=
models
.
TextField
(
verbose_name
=
"
Video demonstration
"
)
name
=
models
.
CharField
(
max_length
=
50
)
description
=
models
.
CharField
(
max_length
=
100
,
verbose_name
=
"
Description of exercise
"
)
video_link
=
models
.
TextField
(
verbose_name
=
"
Video demonstration
"
)
class
User
(
AbstractUser
):
pass
name
=
models
.
CharField
(
max_length
=
30
)
#table for workout plans
...
...
This diff is collapsed.
Click to expand it.
topgym/settings.py
+
1
−
0
View file @
0ed89743
...
...
@@ -47,6 +47,7 @@ INSTALLED_APPS = [
'
django.contrib.staticfiles
'
,
'
sass_processor
'
,
'
core
'
,
'
oauth2_provider
'
]
...
...
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