Commit d4cc5c6c authored by Neal Berones's avatar Neal Berones

added field image to Announcement model

parent 4d610360
# Generated by Django 4.0.3 on 2022-05-17 15:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('announcements', '0002_announcement_author_reaction'),
]
operations = [
migrations.AddField(
model_name='announcement',
name='image',
field=models.FileField(null=True, upload_to='static/'),
),
]
......@@ -11,6 +11,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)
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