migrated for final project

parent 7570ea80
# Generated by Django 3.2.12 on 2022-05-24 13:10
import Announcements.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Announcements', '0003_announcement_announcement_image'),
]
operations = [
migrations.AlterField(
model_name='announcement',
name='announcement_image',
field=models.ImageField(blank=True, null=True, upload_to=Announcements.models.image),
),
]
# Generated by Django 3.2.12 on 2022-05-24 13:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Homepage', '0002_auto_20220404_2049'),
]
operations = [
migrations.AddField(
model_name='widgetuser',
name='profile_image',
field=models.ImageField(blank=True, null=True, upload_to='widget-users/images/<django.db.models.fields.IntegerField>'),
),
]
...@@ -28,7 +28,7 @@ class WidgetUser(models.Model): ...@@ -28,7 +28,7 @@ class WidgetUser(models.Model):
department = models.ForeignKey(Department, on_delete=models.CASCADE) department = models.ForeignKey(Department, on_delete=models.CASCADE)
profile_image = models.ImageField(upload_to=f"widget-users/images/{id_num}") profile_image = models.ImageField(upload_to=f"widget-users/images/{id_num}", null=True, blank=True)
def __str__(self): def __str__(self):
return f"""{self.last_name}, {self.first_name} {self.middle_name}: return f"""{self.last_name}, {self.first_name} {self.middle_name}:
......
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