NDOJ/judge/migrations/0106_friend.py

23 lines
707 B
Python
Raw Normal View History

2020-06-24 01:46:33 +00:00
# Generated by Django 2.2.12 on 2020-06-23 03:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('judge', '0105_auto_20200523_0756'),
]
operations = [
migrations.CreateModel(
name='Friend',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('current_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='following_users', to='judge.Profile')),
('users', models.ManyToManyField(to='judge.Profile')),
],
),
]