we did it bois, we enter in the user id for each one
This commit is contained in:
32
website/upload/migrations/0006_auto_20210218_0008.py
Normal file
32
website/upload/migrations/0006_auto_20210218_0008.py
Normal file
@ -0,0 +1,32 @@
|
||||
# Generated by Django 3.1.6 on 2021-02-17 22:08
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import upload.validators
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('upload', '0005_videos'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='image',
|
||||
name='user',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='image',
|
||||
name='image',
|
||||
field=models.ImageField(upload_to='images/', validators=[upload.validators.imageValidate]),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='videos',
|
||||
name='video',
|
||||
field=models.FileField(upload_to='videos/', validators=[upload.validators.videoValidate]),
|
||||
),
|
||||
]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
website/upload/migrations/__pycache__/0005_videos.cpython-38.pyc
Normal file
BIN
website/upload/migrations/__pycache__/0005_videos.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
website/upload/migrations/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
website/upload/migrations/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user