The updates for the customer dashboard cum accounts
This commit is contained in:
18
master_data/migrations/0002_eventtype_event_type_icon.py
Normal file
18
master_data/migrations/0002_eventtype_event_type_icon.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0 on 2025-12-08 16:06
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('master_data', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='eventtype',
|
||||
name='event_type_icon',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='event_type_icons/'),
|
||||
),
|
||||
]
|
||||
@@ -2,6 +2,7 @@ from django.db import models
|
||||
|
||||
class EventType(models.Model):
|
||||
event_type = models.CharField(max_length=50, null=False, blank=False)
|
||||
event_type_icon = models.ImageField(upload_to='event_type_icons/', null=True, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.event_type
|
||||
|
||||
Reference in New Issue
Block a user