add benchcoach user profile, implement login
This commit is contained in:
23
benchcoach/migrations/0007_teamsnapsettings.py
Normal file
23
benchcoach/migrations/0007_teamsnapsettings.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.2.6 on 2021-12-16 18:53
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('teamsnap', '0019_auto_20211216_1851'),
|
||||
('benchcoach', '0006_alter_profile_avatar'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='TeamsnapSettings',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('managed_team', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='teamsnap.team')),
|
||||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='benchcoach.profile')),
|
||||
],
|
||||
),
|
||||
]
|
||||
20
benchcoach/migrations/0008_alter_profile_teamsnap_user.py
Normal file
20
benchcoach/migrations/0008_alter_profile_teamsnap_user.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 3.2.6 on 2021-12-16 18:56
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('teamsnap', '0019_auto_20211216_1851'),
|
||||
('benchcoach', '0007_teamsnapsettings'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='profile',
|
||||
name='teamsnap_user',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='teamsnap.user'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user