Fakultas Ilmu Komputer UI

Commit 5f097fed authored by Glenda Emanuella Sutanto's avatar Glenda Emanuella Sutanto

Merge branch 'update-nutritionist-data' into 'staging'

Added phone number field in nutritionist + added nutritionist and dietela program data for seeding

See merge request !83
parents 0068bedd 7544bfd9
Pipeline #83194 passed with stages
in 15 minutes and 26 seconds
# Generated by Django 3.1 on 2021-06-23 16:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nutritionists', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='nutritionist',
name='phone_number',
field=models.CharField(max_length=20, null=True),
),
]
......@@ -10,6 +10,7 @@ class Nutritionist(models.Model):
another_practice_place = models.CharField(max_length=255)
languages = models.CharField(max_length=255)
profile_picture = models.ImageField(upload_to='nutritionist',null=True)
phone_number = models.CharField(max_length=20, null=True)
def __str__(self):
return f"{self.full_name_and_degree}"
This diff is collapsed.
[
{
"model": "dietela_program.dietelaprogram",
"fields": {
"id": 1,
"unique_code": "TRIAL",
"name": "One Week Trial",
"price": 239900
}
},
{
"model": "dietela_program.dietelaprogram",
"fields": {
"id": 2,
"unique_code": "BABY_1",
"name": "Body for Baby 1 Bulan",
"price": 609900
}
},
{
"model": "dietela_program.dietelaprogram",
"fields": {
"id": 3,
"unique_code": "BABY_3",
"name": "Body for Baby 3 Bulan",
"price": 1659900
}
},
{
"model": "dietela_program.dietelaprogram",
"fields": {
"id": 4,
"unique_code": "GOALS_1",
"name": "Body Goals Program 1 Bulan",
"price": 609900
}
},
{
"model": "dietela_program.dietelaprogram",
"fields": {
"id": 5,
"unique_code": "GOALS_3",
"name": "Body Goals Program 3 Bulan",
"price": 1659900
}
},
{
"model": "dietela_program.dietelaprogram",
"fields": {
"id": 6,
"unique_code": "GOALS_6",
"name": "Body Goals Program 6 Bulan",
"price": 3449000
}
},
{
"model": "dietela_program.dietelaprogram",
"fields": {
"id": 7,
"unique_code": "BALANCED_1",
"name": "Balanced Diet Program 1 Bulan",
"price": 609900
}
},
{
"model": "dietela_program.dietelaprogram",
"fields": {
"id": 8,
"unique_code": "BALANCED_3",
"name": "Balanced Diet Program 3 Bulan",
"price": 1659900
}
},
{
"model": "dietela_program.dietelaprogram",
"fields": {
"id": 9,
"unique_code": "BALANCED_6",
"name": "Balanced Diet Program 6 Bulan",
"price": 3449000
}
}
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment