Commit bf37a4c0 authored by Neal Berones's avatar Neal Berones

altered upload folder for image field in Announcement model

parent 76ed2050
# Generated by Django 4.0.3 on 2022-05-21 05:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('announcements', '0003_announcement_image'),
]
operations = [
migrations.AlterField(
model_name='announcement',
name='image',
field=models.FileField(null=True, upload_to='static/announcements'),
),
]
......@@ -12,7 +12,7 @@ class Announcement(models.Model):
announcement_title = models.CharField(max_length=50)
announcement_body = models.CharField(max_length=500)
pub_date = models.DateTimeField("date published")
image = models.FileField(upload_to='static/', null=True)
image = models.FileField(upload_to='static/announcements', null=True)
def __str__(self):
return self.announcement_title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment