lots of updates :/

This commit is contained in:
2025-11-30 15:34:08 -05:00
parent 61e198ff55
commit e06a5d49f8
84 changed files with 6614 additions and 2297 deletions

View File

@@ -50,16 +50,14 @@ class Tags(models.Model):
class Organization(models.Model):
MEMBER_TYPE = (
('Nm', 'Non-Member'),
('Na', 'Nano Member'),
('Mm', 'Micro Member'),
('Sm', 'Small Business Member'),
('Lb', 'Local Business Member'),
('Rb', 'Regional Business Member'),
('Ds', 'DigiSnaxx'),
('Dsp', 'DigiSnaxx +')
)
ORG_TYPE = (
('Fo', 'Food'),
('Fb', 'Food & Beverage'),
('Re', 'Retail'),
('Se', 'Service'),
('Vn', 'Venue'),
('Ud', 'Undefined'),
)
@@ -72,7 +70,12 @@ class Organization(models.Model):
long_desc = models.TextField(blank=True, null=True)
tags = models.ManyToManyField(Tags, blank=True)
address = models.CharField(max_length=63, blank=True, null=True)
address_numbers = models.CharField(max_length=63, blank=True, null=True)
address_type = models.CharField(max_length=31, blank=True, null=True)
address_complete = models.CharField(max_length=63, blank=True, null=True)
barrio = models.CharField(max_length=127, blank=True, null=True)
city = models.CharField(max_length=31, blank=True, null=True)
state = models.CharField(max_length=15, blank=True, null=True)
zip_code = models.CharField(max_length=15, blank=True, null=True)
@@ -80,11 +83,12 @@ class Organization(models.Model):
phone_number = models.CharField(max_length=255, blank=True, null=True)
business_email = models.CharField(max_length=63, blank=True, null=True)
is_venue= models.BooleanField(default=False)
is_listed= models.BooleanField(default=False)
is_501c = models.BooleanField(default=False)
is_venue= models.BooleanField(default=False)
latitude = models.FloatField()
longitude = models.FloatField()
latitude = models.FloatField(blank=True, null=True)
longitude = models.FloatField(blank=True, null=True)
contact_name = models.CharField(max_length=63, blank=True, null=True)
contact_email = models.CharField(max_length=63, blank=True, null=True)
@@ -124,8 +128,9 @@ class Event(models.Model):
show_title = models.CharField(max_length=127, blank=True, null=True)
show_link = models.URLField(blank=True, null=True)
show_date = models.DateTimeField()
show_day = models.DateField()
calendar = models.ForeignKey(Calendar, on_delete=models.CASCADE, blank=True, null=True)
calendar = models.ManyToManyField(Calendar, blank=True, null=True)
scraper = models.ForeignKey(Scraper, on_delete=models.CASCADE, null=True)
venue = models.ForeignKey(Organization, on_delete=models.CASCADE)
@@ -157,27 +162,26 @@ class Promo(models.Model):
('Fo', 'Food'),
('Ev', 'Event'),
('Re', 'Retail'),
('Sv', 'Service'),
('Ma', 'Mutual Aid'),
('Ca', 'Classifieds'),
('Ca', 'Classified'),
('Jo', 'Job Opening'),
('Sp', 'Startup Pitch'),
('An', 'Academia Nuts'),
('Ja', 'Journal Article'),
('Su', 'Survey Questions')
('Sp', 'Startup Pitch'),
('An', 'Academia Nut'),
('Su', 'Survey Question')
)
title = models.CharField(max_length=63)
organization = models.ForeignKey(Organization, on_delete=models.CASCADE)
calendar = models.ManyToManyField(Calendar, blank=True, null=True)
promo_type = models.CharField(max_length=15, choices=PROMO_TYPE, default='0')
overlay_image = models.ImageField(upload_to="overlays", blank=True)
classified_image = models.ImageField(upload_to="classifieds", blank=True)
embed_link = models.CharField(max_length=126, blank=True, null=True)
short_text = models.TextField(blank=True, null=True)
short_text = models.CharField(max_length=255,blank=True, null=True)
long_text = models.TextField(blank=True, null=True)
target_link = models.URLField(blank=True, null=True)
notes = models.TextField(blank=True, null=True)
published = models.BooleanField(default=False)
tags = models.ManyToManyField(Tags, blank=True)
class Meta: