Skip to content

Commit

Permalink
Merge pull request #561 from owen2608/owen
Browse files Browse the repository at this point in the history
Update max character count on fields - Owen Issue #495
  • Loading branch information
bryli authored Apr 10, 2024
2 parents 8ef407c + c3f4681 commit b2bcc6f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hknweb/academics/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Migration(migrations.Migration):
name='Rating',
fields=[
('academicentity_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='academics.AcademicEntity')),
('question_text', models.TextField(max_length=500)),
('question_text', models.TextField(max_length=2000)),
('inverted', models.BooleanField(default=False)),
('range_max', models.IntegerField(default=7)),
('rating_value', models.FloatField()),
Expand Down
2 changes: 1 addition & 1 deletion hknweb/academics/migrations/0002_auto_20211223_1902.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='icsr',
name='course_name',
field=models.TextField(default='', max_length=500),
field=models.TextField(default='', max_length=2000),
),
]
2 changes: 1 addition & 1 deletion hknweb/academics/models/course_surveys/rating.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Rating(AcademicEntity):
)

# value attributes
question_text = models.TextField(max_length=500)
question_text = models.TextField(max_length=2000)
inverted = models.BooleanField(default=False)
range_max = models.IntegerField(default=7)
rating_value = models.FloatField()
2 changes: 1 addition & 1 deletion hknweb/events/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Event(models.Model):
end_time = models.DateTimeField()
location = models.CharField(max_length=255)
event_type = models.ForeignKey(EventType, models.CASCADE)
description = MarkdownxField(max_length=500)
description = MarkdownxField(max_length=2000)
rsvp_limit = models.PositiveIntegerField(null=True, blank=True)
access_level = models.IntegerField(
choices=ACCESS_LEVELS,
Expand Down

0 comments on commit b2bcc6f

Please sign in to comment.