healthchecks_healthchecks/hc/accounts/migrations/0048_alter_profile_user.py
Pēteris Caune 47ec070aee
Make Profile.user non-nullable
Each Profile must have a corresponding User object, there should
be no profiles with null "user_id" fields.
2023-08-29 16:19:08 +03:00

24 lines
617 B
Python

# Generated by Django 4.2.4 on 2023-08-29 13:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("accounts", "0047_profile_over_limit_date"),
]
operations = [
migrations.AlterField(
model_name="profile",
name="user",
field=models.OneToOneField(
on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL
),
),
]