Receive and save incoming images
This commit is contained in:
parent
88e4705717
commit
ad7ce6595b
7 changed files with 62 additions and 29 deletions
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 3.0.7 on 2020-11-24 00:41
|
||||
# Generated by Django 3.0.7 on 2020-11-24 17:46
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
@ -19,7 +19,7 @@ class Migration(migrations.Migration):
|
|||
('updated_date', models.DateTimeField(auto_now=True)),
|
||||
('remote_id', models.CharField(max_length=255, null=True)),
|
||||
('image', models.ImageField(blank=True, null=True, upload_to='status/')),
|
||||
('status', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='items', to='bookwyrm.Status')),
|
||||
('status', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='attachments', to='bookwyrm.Status')),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue