Skip to content
Snippets Groups Projects
Commit 0ed89743 authored by Michel, Liam (UG - Comp Sci & Elec Eng)'s avatar Michel, Liam (UG - Comp Sci & Elec Eng)
Browse files

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
......@@ -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
......
......@@ -47,6 +47,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'sass_processor',
'core',
'oauth2_provider'
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment