Skip to content
Snippets Groups Projects
Commit a54b1be4 authored by baoshun yan's avatar baoshun yan
Browse files

can add and delete file

parent cff347b9
No related branches found
No related tags found
No related merge requests found
# Generated by Django 4.0.2 on 2022-02-10 17:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='audiofile',
options={'ordering': ['-created']},
),
migrations.AddField(
model_name='audiofile',
name='file',
field=models.FileField(blank=True, default=None, null=True, upload_to=''),
),
]
# Generated by Django 4.0.2 on 2022-02-10 17:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0002_alter_audiofile_options_audiofile_file'),
]
operations = [
migrations.AlterField(
model_name='audiofile',
name='file',
field=models.FileField(blank=True, default=None, null=True, upload_to='documents/%Y/%m/%d'),
),
]
# Generated by Django 4.0.2 on 2022-02-10 19:51
import base.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0003_alter_audiofile_file'),
]
operations = [
migrations.AlterField(
model_name='audiofile',
name='file',
field=models.FileField(upload_to='documents/%Y/%m/%d/', validators=[base.validators.validate_file_extension]),
),
]
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment