Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1262 from akatsoulas/1218776-max-length
Browse files Browse the repository at this point in the history
[fix bug 1218776] Change the max length in groups models.
  • Loading branch information
akatsoulas committed Nov 18, 2015
2 parents f439730 + 29271b2 commit d319413
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions mozillians/groups/migrations/0004_auto_20151028_0632.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

dependencies = [
('groups', '0003_groupmembership_invalidate'),
]

operations = [
migrations.AlterField(
model_name='group',
name='description',
field=models.TextField(default=b'', max_length=1024, verbose_name='Description', blank=True),
preserve_default=True,
),
migrations.AlterField(
model_name='group',
name='new_member_criteria',
field=models.TextField(default=b'', help_text='Specify the criteria you will use to decide whether or not you will accept a membership request.', max_length=1024, verbose_name='New Member Criteria', blank=True),
preserve_default=True,
),
]
4 changes: 2 additions & 2 deletions mozillians/groups/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Group(GroupBase):
ALIAS_MODEL = GroupAlias

# Has a steward taken ownership of this group?
description = models.TextField(max_length=255,
description = models.TextField(max_length=1024,
verbose_name=_lazy(u'Description'),
default='', blank=True)
curator = models.ForeignKey('users.UserProfile',
Expand Down Expand Up @@ -179,7 +179,7 @@ class Group(GroupBase):
max_length=10
)
new_member_criteria = models.TextField(
max_length=255,
max_length=1024,
default='',
blank=True,
verbose_name=_lazy(u'New Member Criteria'),
Expand Down

0 comments on commit d319413

Please sign in to comment.