Commit 7301808369cfe54e80d34b0904985521bb101eaf
1 parent
a53ed45e
Add file field for support images as comment
Showing
1 changed file
with
18 additions
and
0 deletions
| 1 | +# Generated by Django 2.2.2 on 2020-02-06 21:31 | |
| 2 | + | |
| 3 | +from django.db import migrations, models | |
| 4 | + | |
| 5 | + | |
| 6 | +class Migration(migrations.Migration): | |
| 7 | + | |
| 8 | + dependencies = [ | |
| 9 | + ('django_comments', '0003_add_submit_date_index'), | |
| 10 | + ] | |
| 11 | + | |
| 12 | + operations = [ | |
| 13 | + migrations.AddField( | |
| 14 | + model_name='comment', | |
| 15 | + name='image', | |
| 16 | + field=models.FileField(blank=True, null=True, upload_to='comments/%Y/%m/', verbose_name='Image'), | |
| 17 | + ), | |
| 18 | + ] | ... | ... |
Please
register
or
login
to post a comment