Changeset View
Changeset View
Standalone View
Standalone View
profiles/migrations/0001_initial.py
- This file was added.
| # Generated by Django 3.0.9 on 2020-09-25 10:34 | |||||
| import common.upload_paths | |||||
| from django.conf import settings | |||||
| from django.db import migrations, models | |||||
| import django.db.models.deletion | |||||
| class Migration(migrations.Migration): | |||||
| initial = True | |||||
| dependencies = [ | |||||
| migrations.swappable_dependency(settings.AUTH_USER_MODEL), | |||||
| ] | |||||
| operations = [ | |||||
| migrations.CreateModel( | |||||
| name='Profile', | |||||
| fields=[ | |||||
| ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |||||
| ('date_created', models.DateTimeField(auto_now_add=True)), | |||||
| ('date_updated', models.DateTimeField(auto_now=True)), | |||||
| ('full_name', models.CharField(blank=True, default='', max_length=255)), | |||||
| ('avatar', models.ImageField(blank=True, upload_to=common.upload_paths.get_upload_to_hashed_path)), | |||||
| ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), | |||||
| ], | |||||
| options={ | |||||
| 'abstract': False, | |||||
| }, | |||||
| ), | |||||
| ] | |||||