Skip to content

Commit

Permalink
Upped hint max length to 1000 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
dlareau committed Feb 15, 2020
1 parent 1b92915 commit b26aef5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
8 changes: 4 additions & 4 deletions huntserver/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ class EmailForm(forms.Form):


class HintRequestForm(forms.Form):
request = forms.CharField(max_length=400, label='Hint Request Text', widget=forms.Textarea,
request = forms.CharField(max_length=1000, label='Hint Request Text', widget=forms.Textarea,
help_text="Please describe your progress on the puzzle, and where "
"you feel you are stuck. Max length 400 characters.")
"you feel you are stuck. Max length 1000 characters.")


class HintResponseForm(forms.Form):
response = forms.CharField(max_length=400, label='Hint Response Text',
response = forms.CharField(max_length=1000, label='Hint Response Text',
widget=forms.Textarea(attrs={'rows': 5, 'cols': 30}),
help_text="Max length 400 characters.")
help_text="Max length 1000 characters.")
hint_id = forms.CharField(label='hint_id', widget=forms.HiddenInput())
23 changes: 23 additions & 0 deletions huntserver/migrations/0048_auto_20200215_1743.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 2.2 on 2020-02-15 22:43

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('huntserver', '0047_auto_20200210_2201'),
]

operations = [
migrations.AlterField(
model_name='hint',
name='request',
field=models.TextField(help_text='The text of the request for the hint', max_length=1000),
),
migrations.AlterField(
model_name='hint',
name='response',
field=models.TextField(blank=True, help_text='The text of the response to the hint request', max_length=1000),
),
]
8 changes: 4 additions & 4 deletions huntserver/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,13 +691,13 @@ class Hint(models.Model):
Team,
on_delete=models.CASCADE,
help_text="The team that requested the hint")
request = models.CharField(
max_length=400,
request = models.TextField(
max_length=1000,
help_text="The text of the request for the hint")
request_time = models.DateTimeField(
help_text="Hint request time")
response = models.CharField(
max_length=400,
response = models.TextField(
max_length=1000,
blank=True,
help_text="The text of the response to the hint request")
response_time = models.DateTimeField(
Expand Down

0 comments on commit b26aef5

Please sign in to comment.