Changes in the event model to take the event source
This commit is contained in:
@@ -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})"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user