Skip to content

Commit

Permalink
Making logo optional
Browse files Browse the repository at this point in the history
  • Loading branch information
KarenAJ committed Sep 27, 2024
1 parent ee2bdc6 commit 8ca8547
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.16 on 2024-09-27 15:33

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('configurations', '0008_xdsuiconfiguration_ui_logo'),
]

operations = [
migrations.AlterField(
model_name='xdsuiconfiguration',
name='ui_logo',
field=models.ImageField(blank=True, null=True, upload_to='images/'),
),
]
4 changes: 3 additions & 1 deletion app/configurations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ class XDSUIConfiguration(TimeStampedModel):
course_img_fallback = models.ImageField(upload_to='images/',
null=True,
blank=True)
ui_logo = models.ImageField(upload_to='images/')
ui_logo = models.ImageField(upload_to='images/',
null=True,
blank=True)

def get_absolute_url(self):
""" URL for displaying individual model records."""
Expand Down

0 comments on commit 8ca8547

Please sign in to comment.