Browse Source

Je ne sais pas les changements

master
marax 3 years ago
parent
commit
efaa6edb88
3 changed files with 21 additions and 2 deletions
  1. +18
    -0
      app1/migrations/0004_alter_profile_birthdate.py
  2. +1
    -1
      app1/models.py
  3. +2
    -1
      docker-compose.yml

+ 18
- 0
app1/migrations/0004_alter_profile_birthdate.py View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.8 on 2021-11-05 14:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app1', '0003_alter_profile_birthdate'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='birthdate',
field=models.DateField(),
),
]

+ 1
- 1
app1/models.py View File

@ -32,7 +32,7 @@ class Profile(models.Model):
first_name = models.CharField( max_length=50, blank=True) first_name = models.CharField( max_length=50, blank=True)
last_name = models.CharField( max_length=50, blank=True) last_name = models.CharField( max_length=50, blank=True)
gender = models.CharField(choices=GENRE_CHOICES, max_length=1, default='m') gender = models.CharField(choices=GENRE_CHOICES, max_length=1, default='m')
birthdate = models.DateField(default=date.today())
birthdate = models.DateField()
companyname = models.CharField(max_length=200, blank=True) companyname = models.CharField(max_length=200, blank=True)
bio = models.TextField(default='no bio ...', max_length=300, blank=True) bio = models.TextField(default='no bio ...', max_length=300, blank=True)
avatar = models.OneToOneField( avatar = models.OneToOneField(


+ 2
- 1
docker-compose.yml View File

@ -6,10 +6,11 @@ services:
image: postgres image: postgres
restart: always restart: always
volumes: volumes:
- ./pgdata:/var/lib/postgresql/data
- /dbdata:/var/lib/postgresql/data
environment: environment:
POSTGRES_PASSWORD: c1secret2qbc POSTGRES_PASSWORD: c1secret2qbc
POSTGRES_DB: weontheme POSTGRES_DB: weontheme
PGDATA: /var/lib/postgresql/data/dbfiles
ports: ports:
- 5432:5432 - 5432:5432


Loading…
Cancel
Save

Powered by TurnKey Linux.