Changes in the event model to take the event source

This commit is contained in:
Vivek
2025-12-20 04:05:07 +05:30
parent 2cd2c763f6
commit 8488df7c14
4 changed files with 49 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
from random import choices
from django.db import models
from master_data.models import EventType
@@ -38,6 +39,11 @@ class Event(models.Model):
important_information = models.TextField(blank=True)
venue_name = models.CharField(max_length=250, blank=True)
source = models.CharField(max_length=250, blank=True, choices=[
('official', 'Official'),
('community', 'Community'),
])
def __str__(self):
return f"{self.name} ({self.start_date})"