Skip to content

Commit

Permalink
Merge pull request #104 from SpokaneTech/increase-max-lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
joeriddles authored May 10, 2024
2 parents eecbeba + 7e6177a commit 5137067
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Generated by Django 5.0.1 on 2024-05-09 23:28

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('web', '0008_tag_event_tags'),
]

operations = [
migrations.AlterModelOptions(
name='tag',
options={'ordering': ['value']},
),
migrations.AlterModelOptions(
name='techgroup',
options={'ordering': ['name']},
),
migrations.AlterField(
model_name='event',
name='description',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='event',
name='location',
field=models.CharField(blank=True, help_text='location where this event is being hosted', max_length=1024, null=True),
),
migrations.AlterField(
model_name='event',
name='name',
field=models.CharField(max_length=1024),
),
migrations.AlterField(
model_name='event',
name='tags',
field=models.ManyToManyField(blank=True, to='web.tag'),
),
migrations.AlterField(
model_name='tag',
name='value',
field=models.CharField(max_length=1024, unique=True),
),
migrations.AlterField(
model_name='techgroup',
name='name',
field=models.CharField(max_length=1024, unique=True),
),
]
8 changes: 4 additions & 4 deletions src/web/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Tag(HandyHelperBaseModel):
"""A Tag that describes attributes of a Event."""

value = models.CharField(max_length=32, unique=True, null=False)
value = models.CharField(max_length=1024, unique=True, null=False)

class Meta:
ordering = ["value"]
Expand All @@ -20,7 +20,7 @@ def __str__(self) -> str:
class TechGroup(HandyHelperBaseModel):
"""A group that organizes events."""

name = models.CharField(max_length=32, unique=True)
name = models.CharField(max_length=1024, unique=True)
description = models.TextField(blank=True, null=True)
enabled = models.BooleanField(default=True)
# platform = models.ForeignKey("EventPlatform", blank=True, null=True, on_delete=models.SET_NULL)
Expand All @@ -44,7 +44,7 @@ def get_absolute_url(self) -> str:
class Event(HandyHelperBaseModel):
"""An event on a specific day and time."""

name = models.CharField(max_length=64)
name = models.CharField(max_length=1024)
description = models.TextField(blank=True, null=True)
date_time = models.DateTimeField(auto_now=False, auto_now_add=False, help_text="")
duration = models.DurationField(
Expand All @@ -53,7 +53,7 @@ class Event(HandyHelperBaseModel):
help_text="planned duration of this event",
)
location = models.CharField(
max_length=128,
max_length=1024,
blank=True,
null=True,
help_text="location where this event is being hosted",
Expand Down

0 comments on commit 5137067

Please sign in to comment.