Added Form for Image Upload to Place Create View

This commit is contained in:
Leonhard Strohmidel
2020-07-30 13:09:00 +02:00
parent 73a6a4f8d8
commit c8380a0073
5 changed files with 52 additions and 12 deletions

View File

@@ -0,0 +1,20 @@
# Generated by Django 3.0.8 on 2020-07-30 09:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('lostplaces_app', '0003_auto_20200729_1822'),
]
operations = [
migrations.AddField(
model_name='placeimage',
name='submitted_by',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='images', to=settings.AUTH_USER_MODEL),
),
]